DiagramSocketType

StockSharp.Diagram

Connection type.

Inherits: Equatable<DiagramSocketType>

Implements: INotifyPropertyChanged, IPersistable

Constructors

DiagramSocketType
private DiagramSocketType(Type type, string name, Color color)
diagramSocketType = DiagramSocketType(type, name, color)

Initializes a new instance of the DiagramSocketType.

type
Data type.
name
The name of the connection type.
color
The connection color.

Properties

AllTypes
public static IEnumerable<DiagramSocketType> AllTypes { get; }
value = DiagramSocketType.AllTypes

All available connection types for elements.

Color
public Color Color { get; private set; }
value = diagramSocketType.Color
diagramSocketType.Color = value

The connection color.

Name
public string Name { get; private set; }
value = diagramSocketType.Name
diagramSocketType.Name = value

The name of the connection type.

Type
public Type Type { get; private set; }
value = diagramSocketType.Type
diagramSocketType.Type = value

Connection type.

Methods

Clone
public override DiagramSocketType Clone()
result = diagramSocketType.Clone()

Create a copy of DiagramSocketType.

Returns: Copy.

GetSocketType
public static DiagramSocketType GetSocketType(Type parameterType)
result = DiagramSocketType.GetSocketType(parameterType)

Get DiagramSocketType for Type.

parameterType
Type.

Returns: Diagram socket type.

Load
public void Load(SettingsStorage storage)
diagramSocketType.Load(storage)

Load settings.

storage
Settings storage.
OnEquals
protected override bool OnEquals(DiagramSocketType other)
result = diagramSocketType.OnEquals(other)

Compare DiagramSocketType on the equivalence.

other
Another value with which to compare.

Returns: , if the specified object is equal to the current object, otherwise, .

OnPropertyChanged
protected virtual void OnPropertyChanged(string propertyName)
diagramSocketType.OnPropertyChanged(propertyName)

To call the connection property value change event.

propertyName
Property name.
RegisterType``1
public static DiagramSocketType RegisterType<T>(string name, Color color)
result = DiagramSocketType.RegisterType(name, color)

To register the connection type.

name
The name of the connection type.
color
The connection color.

Returns: Connection type.

Save
public void Save(SettingsStorage storage)
diagramSocketType.Save(storage)

Save settings.

storage
Settings storage.
ToString
public override string ToString()
result = diagramSocketType.ToString()

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

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

Events

PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
diagramSocketType.PropertyChanged += handler

The connection properties value change event.

Fields

Any
public static readonly DiagramSocketType Any
value = DiagramSocketType.Any

Unknown data type.

BasketBlackScholes
public static readonly DiagramSocketType BasketBlackScholes
value = DiagramSocketType.BasketBlackScholes

Black scholes.

BlackScholes
public static readonly DiagramSocketType BlackScholes
value = DiagramSocketType.BlackScholes

Black scholes.

Bool
public static readonly DiagramSocketType Bool
value = DiagramSocketType.Bool

Flag.

Candle
public static readonly DiagramSocketType Candle
value = DiagramSocketType.Candle

Candle.

CandleStates
public static readonly DiagramSocketType CandleStates
value = DiagramSocketType.CandleStates

Candle state.

Comparable
public static readonly DiagramSocketType Comparable
value = DiagramSocketType.Comparable

Comparable values.

Date
public static readonly DiagramSocketType Date
value = DiagramSocketType.Date

Strategy.

IndicatorValue
public static readonly DiagramSocketType IndicatorValue
value = DiagramSocketType.IndicatorValue

Indicator value.

MarketDepth
public static readonly DiagramSocketType MarketDepth
value = DiagramSocketType.MarketDepth

Market depth.

MyTrade
public static readonly DiagramSocketType MyTrade
value = DiagramSocketType.MyTrade

Own trade.

Options
public static readonly DiagramSocketType Options
value = DiagramSocketType.Options

Options.

Order
public static readonly DiagramSocketType Order
value = DiagramSocketType.Order

Order.

OrderFail
public static readonly DiagramSocketType OrderFail
value = DiagramSocketType.OrderFail

Order fail.

OrderState
public static readonly DiagramSocketType OrderState
value = DiagramSocketType.OrderState

Order state.

Portfolio
public static readonly DiagramSocketType Portfolio
value = DiagramSocketType.Portfolio

Portfolio.

Position
public static readonly DiagramSocketType Position
value = DiagramSocketType.Position

Position.

Quote
public static readonly DiagramSocketType Quote
value = DiagramSocketType.Quote

Quote.

Security
public static readonly DiagramSocketType Security
value = DiagramSocketType.Security

Security.

Side
public static readonly DiagramSocketType Side
value = DiagramSocketType.Side

Side.

Strategy
public static readonly DiagramSocketType Strategy
value = DiagramSocketType.Strategy

Strategy.

String
public static readonly DiagramSocketType String
value = DiagramSocketType.String

Text string.

Time
public static readonly DiagramSocketType Time
value = DiagramSocketType.Time

Connector.

Trade
public static readonly DiagramSocketType Trade
value = DiagramSocketType.Trade

Trade.

Unit
public static readonly DiagramSocketType Unit
value = DiagramSocketType.Unit

Numeric value.