New to Telerik UI for WinForms? Start a free 30-day trial

Supplies a document and field-insertion operation to a table-of-contents dialog.

Definition

Namespace:Telerik.WinForms.Documents.UI.Extensibility

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class InsertTableOfContentsDialogContext

Inheritance: objectInsertTableOfContentsDialogContext

Constructors

Initializes a context for the specified document.

C#
public InsertTableOfContentsDialogContext(RadDocument document)
Parameters:documentRadDocument

The document whose content the dialog reads and updates.

Properties

Gets or sets the document into which the selected table field is inserted.

C#
public RadDocument Document { get; set; }

Methods

Inserts the field at the document editor's current insertion point and displays its result.

C#
public void InsertField(TableOfContentsField field)
Parameters:fieldTableOfContentsField

The table-of-contents or table-of-figures field to insert.