PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / OutlineNodeCollection Class / Add Method / Add(String,IDocumentLocation,Icon) Method
The caption of the node to add.
The location associated with the node.
The icon associated with the node.

In This Topic
    Add(String,IDocumentLocation,Icon) Method
    In This Topic
    Adds a node with the specified caption, location and icon to the current collection.
    Syntax
    'Declaration
     
    Public Overloads Function Add( _
       ByVal caption As String, _
       ByVal location As IDocumentLocation, _
       ByVal icon As Icon _
    ) As Integer
    public int Add( 
       string caption,
       IDocumentLocation location,
       Icon icon
    )

    Parameters

    caption
    The caption of the node to add.
    location
    The location associated with the node.
    icon
    The icon associated with the node.

    Return Value

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