Class DynamicPropertyDescriptor
Class that holds the methods for setting the value for the variable.
Inheritance
Namespace: Syncfusion.XlsIO.Implementation.PivotAnalysis
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class DynamicPropertyDescriptor : PropertyDescriptor
Constructors
DynamicPropertyDescriptor(String, Attribute[])
Initializes a new instance of the DynamicPropertyDescriptor class.
Declaration
public DynamicPropertyDescriptor(string name, Attribute[] attributes)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the member. |
System.Attribute[] | attributes | An array of type System.Attribute that contains the member attributes. |
Properties
ComponentType
When overridden in a derived class, gets the type of the component this property is bound to.
Declaration
public override Type ComponentType { get; }
Property Value
Type |
---|
System.Type |
IsReadOnly
When overridden in a derived class, gets a value indicating whether this property is read-only.
Declaration
public override bool IsReadOnly { get; }
Property Value
Type |
---|
System.Boolean |
PropertyType
When overridden in a derived class, gets the type of the property.
Declaration
public override Type PropertyType { get; }
Property Value
Type |
---|
System.Type |
Methods
CanResetValue(Object)
When overridden in a derived class, returns whether re-setting an object changes its value.
Declaration
public override bool CanResetValue(object component)
Parameters
Type | Name | Description |
---|---|---|
System.Object | component | The component to test for reset capability. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if re-setting the component changes its value; otherwise, false. |
GetValue(Object)
When overridden in a derived class, gets the current value of the property on a component.
Declaration
public override object GetValue(object component)
Parameters
Type | Name | Description |
---|---|---|
System.Object | component | The component with the property, for which, to retrieve the value. |
Returns
Type | Description |
---|---|
System.Object | The value of a property for a given component. |
ResetValue(Object)
When overridden in a derived class, resets the value for this property of the component to the default value.
Declaration
public override void ResetValue(object component)
Parameters
Type | Name | Description |
---|---|---|
System.Object | component | The component with the property value that is to be reset to the default value. |
SetValue(Object, Object)
When overridden in a derived class, sets the value of the component to a different value.
Declaration
public override void SetValue(object component, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | component | The component with the property value that is to be set. |
System.Object | value | The new value. |
ShouldSerializeValue(Object)
When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted.
Declaration
public override bool ShouldSerializeValue(object component)
Parameters
Type | Name | Description |
---|---|---|
System.Object | component | The component with the property to be examined for persistence. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the property should be persisted; otherwise, false. |