[]
        
(Showing Draft Content)

C1.C1Preview.OutlineNodeCollection.Add

Add Method

Add(OutlineNode)

Adds a node to the current collection.

Declaration
public int Add(OutlineNode node)
Public Function Add(node As OutlineNode) As Integer
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)
Public Function Add(caption As String) As Integer
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)
Public Function Add(caption As String, location As IDocumentLocation) As Integer
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)
Public Function Add(caption As String, linkTarget As C1LinkTarget) As Integer
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)
Public Function Add(caption As String, location As IDocumentLocation, icon As Icon) As Integer
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.