[]
Adds a style (NamedStyle object) to the collection.
public virtual int Add(NamedStyle style)
Public Overridable Function Add(style As NamedStyle) As Integer
| Type | Name | Description |
|---|---|---|
| NamedStyle | style | Name of the style to add |
| Type | Description |
|---|---|
| int | An index of style in collection. |
| Type | Condition |
|---|---|
| ArgumentNullException | No style specified or specified style is null |
Adds a style (NamedStyle object) to the collection as a child of the specified parent.
public virtual NamedStyle Add(string name, string parentName)
Public Overridable Function Add(name As String, parentName As String) As NamedStyle
| Type | Name | Description |
|---|---|---|
| string | name | Name of the style to add |
| string | parentName | Parent style of the style to add |
| Type | Description |
|---|---|
| NamedStyle | An NamedStyle in collection. |