StateBag
Stores string-keyed chart state and serializes only entries marked dirty.
Definition
Namespace:Telerik.Charting
Assembly:Telerik.WinControls.RadChart.dll
Syntax:
public class StateBag : IEnumerable
Inheritance: objectStateBag
Implements:
Constructors
public StateBag()
Properties
Gets the number of stored entries, including entries that are not marked dirty.
public int Count { get; }
Gets whether TrackViewState() has been called; this flag does not mark entries dirty.
public bool IsTrackingViewState { get; }
Gets all keys stored in the bag, including entries that are not marked dirty.
public ICollection Keys { get; }
Methods
Adds a new state entry. Use the indexer to update an existing entry.
public void Add(string key, object value)
String key that identifies the entry.
valueobjectValue to store.
Exceptions: ArgumentExceptionAn entry with the same key already exists.
Returns an enumerator over the stored key and StateItem pairs.
public IEnumerator GetEnumerator()
An enumerator whose entries are DictionaryEntry values.
Implements:
Merges entries from a state snapshot into this bag. A null state is ignored; keys not present in the snapshot are left unchanged.
public void LoadViewState(object state)
An ArrayList of StateItem entries, typically returned by SaveViewState().
Removes the specified entry if it exists.
Sets IsTrackingViewState to true. It does not mark entries dirty or automatically track later assignments.
public void TrackViewState()