[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.StyleCollection.Add

Add Method

Add(string)

Adds a new Style with the specified key into the StyleCollection.

Declaration
public int Add(string key)
Public Function Add(key As String) As Integer
Parameters
Type Name Description
string key

The key of this Style.

Returns
Type Description
int

The index of this Style in StyleCollection.

Add(string, Style)

Adds an item with the specified key and value into the StyleCollection.

Declaration
public int Add(string key, Style style)
Public Function Add(key As String, style As Style) As Integer
Parameters
Type Name Description
string key

The key of this item.

Style style

The value of this item (a Style).

Returns
Type Description
int

The index of this item in StyleCollection.