Class PropertyBagObject
Represents a disposable object that stores its properties within a dynamic property bag, enabling efficient property management for charting objects.
Inherited Members
Namespace: Telerik.Charting
Assembly: Telerik.WinControls.dll
Syntax
public abstract class PropertyBagObject : DisposableObject, IDisposable
Constructors
PropertyBagObject()
Initializes a new instance of the PropertyBagObject class.
Declaration
protected PropertyBagObject()
Properties
PropertyStore
Gets the underlying property store that manages dynamic properties.
Declaration
public FastPropertyStore PropertyStore { get; }
Property Value
FastPropertyStore
The fast property store instance. |
Methods
ClearValue(Int32)
Clears the value of a property from the property store.
Declaration
public bool ClearValue(int key)
Parameters
System.Int32
key
The property key to clear. |
Returns
System.Boolean
|
ClearValueCore(Int32)
Core implementation for clearing a property value. Override to provide custom clearing logic.
Declaration
public virtual bool ClearValueCore(int key)
Parameters
System.Int32
key
The property key to clear. |
Returns
System.Boolean
|
DisposeManagedResources()
Disposes all managed resources allocated by this instance.
Declaration
protected override void DisposeManagedResources()
Overrides
GetTypedValue<T>(Int32, T)
Gets a strongly-typed property value with a default fallback.
Declaration
public T GetTypedValue<T>(int key, T defaultValue)
Parameters
System.Int32
key
The property key. |
T
defaultValue
The default value to return if the property is not set. |
Returns
T
The typed property value or the default value if not found. |
Type Parameters
T
The type of the property value. |
GetValue(Int32)
Gets the value of a property from the property store.
Declaration
public object GetValue(int key)
Parameters
System.Int32
key
The property key. |
Returns
System.Object
The property value, or |
IsLocalValue(Int32)
Determines whether a property value is set locally in the property store.
Declaration
public bool IsLocalValue(int key)
Parameters
System.Int32
key
The property key to check. |
Returns
System.Boolean
|
SetValue(Int32, Object)
Sets the value of a property in the property store.
Declaration
public bool SetValue(int key, object value)
Parameters
System.Int32
key
The property key. |
System.Object
value
The property value to set. |
Returns
System.Boolean
|
SetValueCore(Int32, Object)
Core implementation for setting a property value. Override to provide custom setting logic.
Declaration
public virtual bool SetValueCore(int key, object value)
Parameters
System.Int32
key
The property key. |
System.Object
value
The property value to set. |
Returns
System.Boolean
|