ProxyDescriptor

StockSharp.Xaml.Charting.Ultrachart.ChartSettingsObjectBase`1

用于图元素属性的 PropertyDescriptor 类的专用.

继承自: NamedPropertyDescriptor

构造函数

ProxyDescriptor
protected ProxyDescriptor(string name, object owner, T origObj, IEnumerable<Attribute> attributes, Func<T, PropertyDescriptor, bool> selector)
proxyDescriptor = ProxyDescriptor(name, owner, origObj, attributes, selector)

创建实例 。

属性

Attributes
public override AttributeCollection Attributes { get; }
value = proxyDescriptor.Attributes

属性.

ComponentType
public override Type ComponentType { get; }
value = proxyDescriptor.ComponentType
IsReadOnly
public override bool IsReadOnly { get; }
value = proxyDescriptor.IsReadOnly

获得一个数值,显示 Icollection 是否只读 。

返回值: 如果Icollection只读;否则,

Owner
public object Owner { get; }
value = proxyDescriptor.Owner

父对象.

PropertyType
public override Type PropertyType { get; }
value = proxyDescriptor.PropertyType

财产类型。

方法

CanResetValue
public override bool CanResetValue(object c)
result = proxyDescriptor.CanResetValue(c)
CreateWrapper
protected abstract ChartSettingsObjectBase<T> CreateWrapper(T obj, Func<T, PropertyDescriptor, bool> selector)
result = proxyDescriptor.CreateWrapper(obj, selector)

创建对象的图表设置对象包。

GetValue
public override object GetValue(object c)
result = proxyDescriptor.GetValue(c)
ResetValue
public override void ResetValue(object c)
proxyDescriptor.ResetValue(c)
SetValue
public override void SetValue(object c, object value)
proxyDescriptor.SetValue(c, value)
ShouldSerializeValue
public override bool ShouldSerializeValue(object c)
result = proxyDescriptor.ShouldSerializeValue(c)