DiagramElementParam

StockSharp.Diagram

图表元素参数 。

继承自: NotifiableObject

实现: IDiagramElementParam, IPersistable, INotifyPropertyChanging, INotifyPropertyChanged, IAttributesEntity

属性

Attributes
public IList<Attribute> Attributes { get; }
value = diagramElementParam.Attributes

属性.

CanChangeValue
public bool CanChangeValue { get; set; }
value = diagramElementParam.CanChangeValue
diagramElementParam.CanChangeValue = value

能够改变价值。

CanOptimize
public bool CanOptimize { get; set; }
value = diagramElementParam.CanOptimize
diagramElementParam.CanOptimize = value

检查可以优化参数.

IgnoreOnSave
public bool IgnoreOnSave { get; set; }
value = diagramElementParam.IgnoreOnSave
diagramElementParam.IgnoreOnSave = value

以取救时而取舍.

IsDefault
public bool IsDefault { get; }
value = diagramElementParam.IsDefault

指定了默认值 。

LoadHandler
public Func<SettingsStorage, T> LoadHandler { get; set; }
value = diagramElementParam.LoadHandler
diagramElementParam.LoadHandler = value

参数值加载处理器 。

Name
public string Name { get; set; }
value = diagramElementParam.Name
diagramElementParam.Name = value

名曰为相.

NotifyOnChanged
public bool NotifyOnChanged { get; set; }
value = diagramElementParam.NotifyOnChanged
diagramElementParam.NotifyOnChanged = value

更改属性时提升已更改的事件 。

SaveHandler
public Func<T, SettingsStorage> SaveHandler { get; set; }
value = diagramElementParam.SaveHandler
diagramElementParam.SaveHandler = value

参数值保存处理器 。

Type
public Type Type { get; }
value = diagramElementParam.Type

参数值的类型 。

Value
public virtual T Value { get; set; }
value = diagramElementParam.Value
diagramElementParam.Value = value

参数值 。

ValueValidating
public Func<T, T, bool> ValueValidating { get; set; }
value = diagramElementParam.ValueValidating
diagramElementParam.ValueValidating = value

验证参数值。

方法

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

装入设置 。

storage
设置存储 。
Save
public void Save(SettingsStorage storage)
diagramElementParam.Save(storage)

保存设置 。

storage
设置存储 。
SetBasic
public DiagramElementParam<T> SetBasic(bool isBasic)
result = diagramElementParam.SetBasic(isBasic)

设置图元素参数的 BasicSettingAttribute 属性 。

isBasic
基本参数。

返回值: 图表元素参数 。

SetCanOptimize
public DiagramElementParam<T> SetCanOptimize(bool value)
result = diagramElementParam.SetCanOptimize(value)

To modify CanOptimize.

value
价值.

返回值: 图表元素参数 。

SetDisplay
public DiagramElementParam<T> SetDisplay(string groupName, string displayName, string description, int order)
result = diagramElementParam.SetDisplay(groupName, displayName, description, order)

设置图元素参数的 DisplayAttribute 属性 。

groupName
图表元素参数的类别。
displayName
展出名相.
description
图表元素参数的描述 。
order
地产令.

返回值: 图表元素参数 。

SetEditor``1
public DiagramElementParam<T> SetEditor<TEditor>(TEditor editor)
result = diagramElementParam.SetEditor(editor)

添加图元素参数的属性属性 。

editor
属性.

返回值: 图表元素参数 。

SetExpandable
public DiagramElementParam<T> SetExpandable(bool expandable)
result = diagramElementParam.SetExpandable(expandable)

设置图元素参数的 ExpandableObjectConverter 属性 。

expandable
价值.

返回值: 图表元素参数 。

SetNonBrowsable
public DiagramElementParam<T> SetNonBrowsable(bool nonBrowsable)
result = diagramElementParam.SetNonBrowsable(nonBrowsable)

设置图元素参数的 BrowsableAttribute 属性 。

nonBrowsable
隐藏参数 。

返回值: 图表元素参数 。

SetReadOnly
public DiagramElementParam<T> SetReadOnly(bool readOnly)
result = diagramElementParam.SetReadOnly(readOnly)

设置图元素参数的 ReadOnlyAttribute 属性 。

readOnly
唯念一义.

返回值: 图表元素参数 。

SetValueWithIgnoreOnSave
public void SetValueWithIgnoreOnSave(object value)
diagramElementParam.SetValueWithIgnoreOnSave(value)

设置值,并在保存设置时忽略它.

value
价值.
ToString
public override string ToString()
result = diagramElementParam.ToString()

转换为行代表.

返回值: 弦乐表演.

事件

ValueChanged
public event Action<T> ValueChanged
diagramElementParam.ValueChanged += handler

参数值变化事件 。

ValueChanging
public event Action<T, T> ValueChanging
diagramElementParam.ValueChanging += handler

参数值变化起动事件 。