DiagramSocket

StockSharp.Diagram

Connection.

继承自: Disposable

实现: INotifyPropertyChanged

构造函数

DiagramSocket(DiagramSocketDirection, string)

Initializes a new instance of the DiagramSocket.

属性

Action : Action<DiagramSocketValue>

Socket action.

AvailableTypes : IList<DiagramSocketType>

Available input data types.

Direction : DiagramSocketDirection

The connection direction.

GuiWrapper : INotifyPropertyChanged

Gui wrapper for property binding.

Id : string

The connection identifier.

IsBreak : bool

Is socket has break.

IsBreakActive : bool

Is socket break active.

IsConnected : bool

Is socket has connections.

IsDynamic : bool

Dynamic sockets are removed during Load().

IsInput : bool

Is input.

IsOutput : bool

Is output.

IsSelected : bool

Is socket selected.

LinkableMaximum : int

The maximum number of connections.

Name : string

The connection name.

Parent : DiagramElement

The socket parent element.

Type : DiagramSocketType

Connection type.

Value : object

The current value.

方法

CanConnect(DiagramSocket) : bool

To check the ability to make a connection.

to
Connection.

返回值: The test result.

CanConnectFrom(DiagramSocket) : bool

To check the ability to make a connection.

from
Connection.

返回值: The test result.

Connect(DiagramSocket)

Invoke Connected event.

other
DiagramSocket
Disconnect(DiagramSocket)

Invoke Connected event.

other
DiagramSocket
DisposeManaged()

Release resources.

OnPropertyChanged(string)

To call the connection property value change event.

propertyName
Property name.
ToString() : string

Преобразовать к строковому представлению.

返回值: Строковое представление.

事件

CanConnectEx : Func<DiagramSocket, bool>

Extra validation for the ability to make a connection.

Connected : Action<DiagramSocket, DiagramSocket>

The event of the socket connection with another one.

Disconnected : Action<DiagramSocket, DiagramSocket>

The socket disconnection event.

PropertyChanged : PropertyChangedEventHandler

The connection properties value change event.