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

Supplies a document and insertion operations to a cross-reference window.

Definition

Namespace:Telerik.WinForms.Documents.UI.Extensibility

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class InsertCrossReferenceWindowContext

Inheritance: objectInsertCrossReferenceWindowContext

Constructors

Initializes a context that reads and inserts cross-references in the specified document.

C#
public InsertCrossReferenceWindowContext(RadDocument document)
Parameters:documentRadDocument

The document to use for reference lookup and insertion.

Properties

Gets the document whose captions, headings, and bookmarks are available as reference targets.

C#
public RadDocument Document { get; }

Methods

Inserts a field that refers to the specified caption sequence and requested caption content.

C#
public void InsertCaptionReferenceField(ReferenceFieldBase field, FieldRangeStart sequenceFieldStart, ReferenceContentType referenceContentType)
Parameters:fieldReferenceFieldBase

The reference field to insert.

sequenceFieldStartFieldRangeStart

The sequence field identifying the caption.

referenceContentTypeReferenceContentType

The caption content represented by the reference.

Inserts a field that refers to the specified heading paragraph.

C#
public void InsertHeadingReferenceField(ReferenceFieldBase field, Paragraph headingParagraph, ReferenceContentType referenceContentType)
Parameters:fieldReferenceFieldBase

The reference field, including the display options used for insertion.

headingParagraphParagraph

The paragraph targeted by the reference.

referenceContentTypeReferenceContentType

This implementation does not read this argument; the field's display options determine the inserted content.

Inserts the field at the document editor's current caret position and displays its result.

C#
public void InsertReferenceField(ReferenceFieldBase field)
Parameters:fieldReferenceFieldBase

The reference field to insert.