Class DiagramElementParam<T>
Параметр элемента схемы.
Implements
Ecng.Serialization.IPersistable
Namespace: StockSharp.Xaml.Diagram
Assembly: StockSharp.Xaml.Diagram.dll
Syntax
public class DiagramElementParam<T> : NotifiableObject, IDiagramElementParam, IPersistable, INotifyPropertyChanging, INotifyPropertyChanged
Type Parameters
Name | Description |
---|---|
T | Тип значения. |
Constructors
DiagramElementParam()
Declaration
public DiagramElementParam()
Properties
Attributes
Атрибуты.
Declaration
public IList<Attribute> Attributes { get; }
Property Value
Type | Description |
---|---|
IList<Attribute> |
CanChangeValue
Можно ли изменить значение.
Declaration
public bool CanChangeValue { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Category
Category.
Declaration
public string Category { get; set; }
Property Value
Type | Description |
---|---|
String |
Description
Описание параметра.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
DisplayName
Отображаемое название.
Declaration
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
String |
IgnoreOnSave
Игнорировать при сохранении.
Declaration
public bool IgnoreOnSave { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsDefault
Указано значение по умолчанию.
Declaration
public bool IsDefault { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsParam
Изменяемый параметр.
Declaration
public bool IsParam { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
LoadHandler
Обработчик загрузки значения параметра.
Declaration
public Func<SettingsStorage, T> LoadHandler { get; set; }
Property Value
Type | Description |
---|---|
Func<Ecng.Serialization.SettingsStorage, T> |
Name
Parameter name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
NotifyOnChanged
Вызывать событие изменения при изменении свойства.
Declaration
public bool NotifyOnChanged { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SaveHandler
Обработчик сохранения значения параметра.
Declaration
public Func<T, SettingsStorage> SaveHandler { get; set; }
Property Value
Type | Description |
---|---|
Func<T, Ecng.Serialization.SettingsStorage> |
Type
Parameter type.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Value
Значение параметра.
Declaration
public T Value { get; set; }
Property Value
Type | Description |
---|---|
T |
Methods
Load(SettingsStorage)
Загрузить настройки.
Declaration
public void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Save(SettingsStorage)
Сохранить настройки.
Declaration
public void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
SetValueWithIgnoreOnSave(Object)
Устрановить значения и проигнориорвать сохранение.
Declaration
public void SetValueWithIgnoreOnSave(object value)
Parameters
Type | Name | Description |
---|---|---|
Object | value | Value. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Events
ValueChanged
Событие изменения значения параметра.
Declaration
public event Action<T> ValueChanged
Event Type
Type | Description |
---|---|
Action<T> |
ValueChanging
Событие начала изменения значения параметра.
Declaration
public event Action<T, T> ValueChanging
Event Type
Type | Description |
---|---|
Action<T, T> |
Explicit Interface Implementations
IDiagramElementParam.set_Value(Object)
Declaration
void IDiagramElementParam.set_Value(object #=zrqhZLas=)
Parameters
Type | Name | Description |
---|---|---|
Object | #=zrqhZLas= |
IDiagramElementParam.get_Value()
Declaration
object IDiagramElementParam.get_Value()
Returns
Type | Description |
---|---|
Object |
Implements
Ecng.Serialization.IPersistable