Class ObjectStorage
Represents a storage for the storing objects and their StorageId keys.
Inheritance
Namespace: Telerik.Windows.PersistenceFramework
Assembly: Telerik.Windows.PersistenceFramework.dll
Syntax
public class ObjectStorage : Object
Constructors
ObjectStorage()
Declaration
public ObjectStorage()
Properties
Count
Gets the count.
Declaration
public virtual int Count { get; }
Property Value
System.Int32
|
Items
Gets the items.
Declaration
public virtual IEnumerable<DependencyObject> Items { get; }
Property Value
System.Collections.Generic.IEnumerable<System.Windows.DependencyObject>
|
Keys
Gets the keys.
Declaration
public virtual IEnumerable<string> Keys { get; }
Property Value
System.Collections.Generic.IEnumerable<System.String>
|
Methods
AddItemToStorage(String, DependencyObject)
Adds the item to storage.
Declaration
public virtual void AddItemToStorage(string key, DependencyObject item)
Parameters
System.String
key
The key. |
System.Windows.DependencyObject
item
The item. |
Clear()
Clears this instance.
Declaration
public virtual void Clear()
ContainsItemKey(String)
Determines whether [contains item key] [the specified key].
Declaration
public virtual bool ContainsItemKey(string key)
Parameters
System.String
key
The key. |
Returns
System.Boolean
|
GetElement(String)
Gets the element.
Declaration
public virtual DependencyObject GetElement(string key)
Parameters
System.String
key
The key. |
Returns
System.Windows.DependencyObject
|
GetElementAt(Int32)
Gets the element at.
Declaration
public virtual DependencyObject GetElementAt(int index)
Parameters
System.Int32
index
The index. |
Returns
System.Windows.DependencyObject
|
GetKey(DependencyObject)
Gets the key.
Declaration
public virtual string GetKey(DependencyObject item)
Parameters
System.Windows.DependencyObject
item
The item. |
Returns
System.String
|
RemoveItemFromStorage(String)
Removes the item from storage.
Declaration
public virtual void RemoveItemFromStorage(string key)
Parameters
System.String
key
The key. |
ReplaceItemInStorage(String, DependencyObject)
Replaces the item in storage.
Declaration
public virtual void ReplaceItemInStorage(string key, DependencyObject item)
Parameters
System.String
key
The key. |
System.Windows.DependencyObject
item
The item. |