PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.8 Assembly / C1.C1Preview Namespace / RenderToc Class / AddItem Method / AddItem(String,ParagraphObject) Method
A text representing the TOC item that is being added.
A ParagraphObject which is the target of the TOC item.

In This Topic
    AddItem(String,ParagraphObject) Method
    In This Topic
    Creates a new RenderTocItem initialized with the specified text and target ParagraphObject, and adds it to the current TOC.
    Syntax
    'Declaration
     
    Public Overloads Function AddItem( _
       ByVal text As String, _
       ByVal target As ParagraphObject _
    ) As RenderTocItem
    public RenderTocItem AddItem( 
       string text,
       ParagraphObject target
    )

    Parameters

    text
    A text representing the TOC item that is being added.
    target
    A ParagraphObject which is the target of the TOC item.

    Return Value

    The RenderTocItem that was created and added to the current TOC.
    See Also