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
CanChangeValue
Can change value.
public bool CanChangeValue { get; set; }
Property Value
Category
Category.
public string Category { get; set; }
Property Value
Description
The parameter description.
public string Description { get; set; }
Property Value
DisplayName
The displayed name.
public string DisplayName { get; set; }
Property Value
IgnoreOnSave
To ignore when saving.
public bool IgnoreOnSave { get; set; }
Property Value
IsBasicSetting
Show the parameter on basic settings page.
public bool IsBasicSetting { get; }
Property Value
IsDefault
The default value is specified.
public bool IsDefault { get; }
Property Value
IsParam
The changeable parameter.
public bool IsParam { get; set; }
Property Value
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
NotifyOnChanged
Raise changed event when property is changed.
public bool NotifyOnChanged { get; set; }
Property Value
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
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
SettingsStorageSettings storage.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
SetValueWithIgnoreOnSave(object)
Set value and ignore it on save settings.
public void SetValueWithIgnoreOnSave(object value)
Parameters
value
objectValue.
ToString()
public override string ToString()
Returns
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>