[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.StyleCollection

StyleCollection Class

Represents a collection of Style objects.

Inheritance
StyleCollection
Namespace: GrapeCity.Win.Spread.InputMan.CellType
Assembly: GrapeCity.Win.PluginInputMan.dll
Syntax
[TypeConverter(typeof(StylesConverter))]
public class StyleCollection : BaseKeyCollection, ICollection, IEnumerable
<TypeConverter(GetType(StylesConverter))>
Public Class StyleCollection
    Inherits BaseKeyCollection
    Implements ICollection, IEnumerable

Constructors

Name Description
StyleCollection()

Initializes a new instance of the StyleCollection class.

StyleCollection(string[], Style[])

Initializes a new instance of the StyleCollection class.

Properties

Name Description
this[int]

Gets the Style at the specified index.

this[string]

Gets the Style with the specified key.

Methods

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.