[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Fields.IndexEntry.AddSubEntry

AddSubEntry Method

AddSubEntry(string)

Adds a sub index entry.

Declaration
public IndexEntry AddSubEntry(string text)
Public Function AddSubEntry(text As String) As IndexEntry
Parameters
Type Name Description
string text

The sub index entry text.

Returns
Type Description
IndexEntry

The sub index entry.

Exceptions
Type Condition
InvalidOperationException

Thrown if adding a subentry that already exists.

InvalidOperationException

Thrown if adding a subentry with Level greater than Level9.

AddSubEntry(string, string)

Adds a sub index entry.

Declaration
public IndexEntry AddSubEntry(string text, string sortBy)
Public Function AddSubEntry(text As String, sortBy As String) As IndexEntry
Parameters
Type Name Description
string text

The sub index entry text.

string sortBy

The string to sort entry in the INDEX field result.

Returns
Type Description
IndexEntry

The sub index entry.

Exceptions
Type Condition
InvalidOperationException

Thrown if adding a subentry that already exists.

InvalidOperationException

Thrown if adding a subentry with Level greater than Level9.