[]
Adds the specified style to the collection.
public TocStyleLevel Add(string name, OutlineLevel displayLevel)
Public Function Add(name As String, displayLevel As OutlineLevel) As TocStyleLevel
Type | Name | Description |
---|---|---|
string | name | The style name. |
OutlineLevel | displayLevel | The outline level on which to display the collected paragraphs in the TOC field result. |
Type | Description |
---|---|
TocStyleLevel | The newly created TocStyleLevel instance. |
Type | Condition |
---|---|
ArgumentException | Thrown when |
ArgumentException | Thrown when the style with the given name already exist in the collection. |