Class
PropertyBagObject

Represents a disposable object that stores its properties within a dynamic property bag, enabling efficient property management for charting objects.

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public abstract class PropertyBagObject : DisposableObject, IDisposable

Inheritance: objectDisposableObjectPropertyBagObject

Derived Classes: ChartNodeSparkNode

Implements: IDisposable

Inherited Members DisposableObject.Dispose()DisposableObject.DisposeUnmanagedResources()DisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.EventsDisposableObject.DisposingDisposableObject.Disposed

Constructors

PropertyBagObject()

Initializes a new instance of the PropertyBagObject class.

Declaration

cs-api-definition
protected PropertyBagObject()

Properties

PropertyStore

Gets the underlying property store that manages dynamic properties.

Declaration

cs-api-definition
public FastPropertyStore PropertyStore { get; }

Property Value

FastPropertyStore

The fast property store instance.

Methods

ClearValue(int)

Clears the value of a property from the property store.

Declaration

cs-api-definition
public bool ClearValue(int key)

Parameters

key

int

The property key to clear.

Returns

bool

true if the value was cleared successfully; otherwise, false.

ClearValueCore(int)

Core implementation for clearing a property value. Override to provide custom clearing logic.

Declaration

cs-api-definition
public virtual bool ClearValueCore(int key)

Parameters

key

int

The property key to clear.

Returns

bool

true if the value was cleared successfully; otherwise, false.

DisposeManagedResources()

Disposes all managed resources allocated by this instance.

Declaration

cs-api-definition
protected override void DisposeManagedResources()

Overrides DisposableObject.DisposeManagedResources()

GetTypedValue<T>(int, T)

Gets a strongly-typed property value with a default fallback.

Declaration

cs-api-definition
public T GetTypedValue<T>(int key, T defaultValue)

Parameters

key

int

The property key.

defaultValue

T

The default value to return if the property is not set.

Returns

T

The typed property value or the default value if not found.

GetValue(int)

Gets the value of a property from the property store.

Declaration

cs-api-definition
public object GetValue(int key)

Parameters

key

int

The property key.

Returns

object

The property value, or null if not found.

IsLocalValue(int)

Determines whether a property value is set locally in the property store.

Declaration

cs-api-definition
public bool IsLocalValue(int key)

Parameters

key

int

The property key to check.

Returns

bool

true if the property has a local value; otherwise, false.

SetValue(int, object)

Sets the value of a property in the property store.

Declaration

cs-api-definition
public bool SetValue(int key, object value)

Parameters

key

int

The property key.

value

object

The property value to set.

Returns

bool

true if the value was set successfully; otherwise, false.

SetValueCore(int, object)

Core implementation for setting a property value. Override to provide custom setting logic.

Declaration

cs-api-definition
public virtual bool SetValueCore(int key, object value)

Parameters

key

int

The property key.

value

object

The property value to set.

Returns

bool

true if the value was set successfully; otherwise, false.