Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / RenderToc Class / AddItem Method / AddItem(String,C1Hyperlink,Int32) Method
A text representing the TOC item that is being added.
A C1Hyperlink which is the target of the TOC item.
The RenderTocItem.Level of the TOC item.

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

    Parameters

    text
    A text representing the TOC item that is being added.
    hyperlink
    A C1Hyperlink which is the target of the TOC item.
    level
    The RenderTocItem.Level of the TOC item.

    Return Value

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