Class StylesDictionary
Represents a collection that is used for storing date/style pairs.
Inheritance
System.Object
StylesDictionary
Implements
System.Collections.Specialized.INotifyCollectionChanged
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class StylesDictionary : Hashtable, INotifyCollectionChanged
Constructors
StylesDictionary()
Declaration
public StylesDictionary()
Properties
Item[Object]
Implements indexer logic.
Declaration
public override object this[object key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | String representation of the date parameter. |
Property Value
Type | Description |
---|---|
System.Object | The System.Windows.Style composition of the entry. |
Methods
Add(Object, Object)
Adds new entry to the hash table
Declaration
public override void Add(object key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | String representation of the date parameter. |
System.Object | value | The StyleItem object. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The key must be valid a string representation of System.DateTime value. |
System.NotSupportedException | Collection is used for StyleItem items only. |
System.ArgumentException | Style value of StyleItem parameter cannot be null. |
Clear()
Removes all elements from the hash table
Declaration
public override void Clear()
Remove(Object)
Removes entry by the key.
Declaration
public override void Remove(object key)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | String representation of the date parameter. |
Events
CollectionChanged
Occurs when the collection changes.
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type |
---|
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
Implements
System.Collections.Specialized.INotifyCollectionChanged