Creates a new RenderTocItem initialized with the specified text and target ParagraphObject, and adds it to the current TOC.

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

Syntax

C#
public RenderTocItem AddItem(
	string text,
	ParagraphObject target
)
Visual Basic
Public Function AddItem ( _
	text As String, _
	target As ParagraphObject _
) As RenderTocItem

Parameters

text
Type: System..::..String
A text representing the TOC item that is being added.
target
Type: C1.C1Preview..::..ParagraphObject
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