[]
        
(Showing Draft Content)

C1.C1Preview.OutlineNodeCollection.Add

Add Method

Add(OutlineNode)

Adds a node to the current collection.

Declaration
public int Add(OutlineNode node)
Parameters
Type Name Description
OutlineNode node

The node to add.

Returns
Type Description
int

The index of the newly added node in the current collection.

Add(string)

Adds a node with the specified caption and location to the current collection.

Declaration
public int Add(string caption)
Parameters
Type Name Description
string caption

The caption of the node to add.

Returns
Type Description
int

The index of the newly added node in the current collection.

Add(string, IDocumentLocation)

Adds a node with the specified caption and location to the current collection.

Declaration
public int Add(string caption, IDocumentLocation location)
Parameters
Type Name Description
string caption

The caption of the node to add.

IDocumentLocation location

The location associated with the node.

Returns
Type Description
int

The index of the newly added node in the current collection.

Add(string, C1LinkTarget)

Adds a node with the specified caption and link target to the current collection.

Declaration
public int Add(string caption, C1LinkTarget linkTarget)
Parameters
Type Name Description
string caption

The caption of the node to add.

C1LinkTarget linkTarget

The C1LinkTarget associated with the node.

Returns
Type Description
int

The index of the newly added node in the current collection.

Add(string, IDocumentLocation, Icon)

Adds a node with the specified caption, location and icon to the current collection.

Declaration
public int Add(string caption, IDocumentLocation location, Icon icon)
Parameters
Type Name Description
string caption

The caption of the node to add.

IDocumentLocation location

The location associated with the node.

Icon icon

The icon associated with the node.

Returns
Type Description
int

The index of the newly added node in the current collection.