[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.SubStyleCollection.Add

Add Method

Add(string)

Adds a new SubStyle with the specified key into the SubStyleCollection.

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

The key of this SubStyle object.

Returns
Type Description
int

The index of this item in SubStyleCollection.

Add(string, SubStyle)

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

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

The key of this item.

SubStyle subStyle

The value of this item (a SubStyle).

Returns
Type Description
int

The index of this item in SubStyleCollection.