Click or drag to resize

DiagramElementAddInput Method

To add an incoming connection.

Namespace:  StockSharp.Xaml.Diagram
Assembly:  StockSharp.Xaml.Diagram (in StockSharp.Xaml.Diagram.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
protected DiagramSocket AddInput(
	string uniqueKey,
	string name,
	DiagramSocketType type,
	Action<DiagramSocketValue> process,
	int linkableMax = 1,
	int index = 2147483647,
	string socketId = null,
	bool allowConvertToNumeric = false
)

Parameters

uniqueKey
Type: SystemString
The unique key.
name
Type: SystemString
The connection name.
type
Type: StockSharp.Xaml.DiagramDiagramSocketType
Connection type.
process
Type: SystemActionDiagramSocketValue
The action is called at the processing of the new incoming value for socket.
linkableMax (Optional)
Type: SystemInt32
The maximum number of connections.
index (Optional)
Type: SystemInt32
Index in sockets list.
socketId (Optional)
Type: SystemString
The connection identifier.
allowConvertToNumeric (Optional)
Type: SystemBoolean
Allow converting to numeric for input values.

Return Value

Type: DiagramSocket
Connection.
See Also