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

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public int Add(
	string caption,
	IDocumentLocation location,
	Icon icon
)
Visual Basic
Public Function Add ( _
	caption As String, _
	location As IDocumentLocation, _
	icon As Icon _
) As Integer

Parameters

caption
Type: System..::..String
The caption of the node to add.
location
Type: C1.C1Preview..::..IDocumentLocation
The location associated with the node.
icon
Type: System.Drawing..::..Icon
The icon associated with the node.

Return Value

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

See Also