[]
Represents a collection of Style objects.
[TypeConverter(typeof(StylesConverter))]
public class StyleCollection : BaseKeyCollection, ICollection, IEnumerable
<TypeConverter(GetType(StylesConverter))>
Public Class StyleCollection
Inherits BaseKeyCollection
Implements ICollection, IEnumerable
Name | Description |
---|---|
StyleCollection() | Initializes a new instance of the StyleCollection class. |
StyleCollection(string[], Style[]) | Initializes a new instance of the StyleCollection class. |
Name | Description |
---|---|
this[int] | Gets the Style at the specified index. |
this[string] | Gets the Style with the specified key. |
Name | Description |
---|---|
Add(string) | Adds a new Style with the specified key into the StyleCollection. |
Add(string, Style) | Adds an item with the specified key and value into the StyleCollection. |
AddRange(string[], Style[]) | Adds the specified key array and Style array into the StyleCollection. |
Clear() | Removes all elements from the StyleCollection. |
CopyTo(Style[]) | Copies the items of the StyleCollection to a compatible one-dimensional array of type Style, starting from the first index of the target array. |
CopyTo(Style[], int) | Copies the items of the StyleCollection to a compatible one-dimensional array of type Style, starting at the specified zero-based index of the target array. |
Insert(int, string) | Inserts a new Style with the specified key into the StyleCollection. |
Insert(int, string, Style) | Inserts an item with the specified key and value into the StyleCollection. |
OnCollectionChanged(CollectionChangeEventArgs) | Called when the StyleCollection object has changed. |
Remove(string) | Removes the element with the specified key from the StyleCollection. |
RemoveAt(int) | Removes the element with the specified index from the StyleCollection. |