DXAttribute |
public class DXAttributeCollection
The DXAttributeCollection type exposes the following members.
Name | Description | |
---|---|---|
DXAttributeCollection | Constructor |
Name | Description | |
---|---|---|
AttributesCount | Gets the number of attributes in this collection. | |
Item | Gets or sets the attribute with specified type. |
Name | Description | |
---|---|---|
ClearAllAttributes | Clears all DXAttributeType in this collection. | |
ClearValue | Clears the value from DXAttributeType so that IsValueSet(DXAttributeType) method returns false for that DXAttributeType. | |
GetAllAttributes | Returns a copy of this collection as array of DXAttribute | |
GetValue | Gets the value of the specified DXAttributeType or throws an exception if the DXAttributeType was not set. Use GetValueOrDefault(DXAttributeType), GetValueOrDefaultT(DXAttributeType) or GetValueOrDefaultT(DXAttributeType, T) to prevent throwing exception when the value is not set. | |
GetValueOrDefault(DXAttributeType) | Gets the value of the specified attributeType as object or null if the specified attributeType is not set. | |
GetValueOrDefaultT(DXAttributeType) | Gets the value of the specified attributeType or a default value if the specified type T if the attributeType was not set. | |
GetValueOrDefaultT(DXAttributeType, T) | Gets the value of the specified attributeType or a defaultValue if the specified type T if the attributeType was not set. | |
IsValueSet | Returns true if the specified attributeType was set (result is true even if the value is null). | |
SetValue | Sets the value to the attribute with specified attributeType. | |
SubscribeAttributeChanged | SubscribeAttributeChanged subscribes specified dxAttributeChangedHandler to be notified when any attribute in this DXAttributeCollection is changed. This method uses WeakReference to store the dxAttributeChangedHandler. If dxAttributeChangedHandler is already subscribed to changes, then it will not be subscribed again. | |
ToString |
Returns a string that represents the current object.
(Overrides ObjectToString) | |
UnsubscribeAttributeChanged | UnsubscribeAttributeChanged unsubscribes the specified dxAttributeChangedHandler from being notified about attribute changes. |