Table of Contents

Class DiagramElementParam<T>

Namespace
StockSharp.Diagram
Assembly
StockSharp.Diagram.Core.dll

The diagram element parameter.

public class DiagramElementParam<T> : NotifiableObject, IDiagramElementParam, IPersistable, INotifyPropertyChanging, INotifyPropertyChanged

Type Parameters

T

Value type.

Inheritance
DiagramElementParam<T>
Implements
IPersistable
Extension Methods

Constructors

DiagramElementParam()

public DiagramElementParam()

Properties

Attributes

Attributes.

public IList<Attribute> Attributes { get; }

Property Value

IList<Attribute>

CanChangeValue

Can change value.

public bool CanChangeValue { get; set; }

Property Value

bool

Category

Category.

public string Category { get; set; }

Property Value

string

Description

The parameter description.

public string Description { get; set; }

Property Value

string

DisplayName

The displayed name.

public string DisplayName { get; set; }

Property Value

string

IgnoreOnSave

To ignore when saving.

public bool IgnoreOnSave { get; set; }

Property Value

bool

IsBasicSetting

Show the parameter on basic settings page.

public bool IsBasicSetting { get; }

Property Value

bool

IsDefault

The default value is specified.

public bool IsDefault { get; }

Property Value

bool

IsParam

The changeable parameter.

public bool IsParam { get; set; }

Property Value

bool

LoadHandler

The parameter value loading handler.

public Func<SettingsStorage, T> LoadHandler { get; set; }

Property Value

Func<SettingsStorage, T>

Name

Parameter name.

public string Name { get; set; }

Property Value

string

NotifyOnChanged

Raise changed event when property is changed.

public bool NotifyOnChanged { get; set; }

Property Value

bool

SaveHandler

The parameter value saving handler.

public Func<T, SettingsStorage> SaveHandler { get; set; }

Property Value

Func<T, SettingsStorage>

Type

Parameter type.

public Type Type { get; }

Property Value

Type

Value

The parameter value.

public virtual T Value { get; set; }

Property Value

T

Methods

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

SetValueWithIgnoreOnSave(object)

Set value and ignore it on save settings.

public void SetValueWithIgnoreOnSave(object value)

Parameters

value object

Value.

ToString()

public override string ToString()

Returns

string

Events

ValueChanged

The parameter value change event.

public event Action<T> ValueChanged

Event Type

Action<T>

ValueChanging

The parameter value change start event.

public event Action<T, T> ValueChanging

Event Type

Action<T, T>