[]
Adds a new Style with the specified key into the StyleCollection.
public int Add(string key)
Public Function Add(key As String) As Integer
Type | Name | Description |
---|---|---|
string | key | The key of this Style. |
Type | Description |
---|---|
int | The index of this Style in StyleCollection. |
Adds an item with the specified key and value into the StyleCollection.
public int Add(string key, Style style)
Public Function Add(key As String, style As Style) As Integer
Type | Name | Description |
---|---|---|
string | key | The key of this item. |
Style | style | The value of this item (a Style). |
Type | Description |
---|---|
int | The index of this item in StyleCollection. |