Supplies a document and insertion operations to a cross-reference window.
Definition
Namespace:Telerik.WinForms.Documents.UI.Extensibility
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class InsertCrossReferenceWindowContext
Inheritance: objectInsertCrossReferenceWindowContext
Constructors
Initializes a context that reads and inserts cross-references in the specified document.
public InsertCrossReferenceWindowContext(RadDocument document)
The document to use for reference lookup and insertion.
Properties
Gets the document whose captions, headings, and bookmarks are available as reference targets.
public RadDocument Document { get; }
Methods
Inserts a field that refers to the specified caption sequence and requested caption content.
public void InsertCaptionReferenceField(ReferenceFieldBase field, FieldRangeStart sequenceFieldStart, ReferenceContentType referenceContentType)
The reference field to insert.
sequenceFieldStartFieldRangeStartThe sequence field identifying the caption.
referenceContentTypeReferenceContentTypeThe caption content represented by the reference.
Inserts a field that refers to the specified heading paragraph.
public void InsertHeadingReferenceField(ReferenceFieldBase field, Paragraph headingParagraph, ReferenceContentType referenceContentType)
The reference field, including the display options used for insertion.
headingParagraphParagraphThe paragraph targeted by the reference.
referenceContentTypeReferenceContentTypeThis 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.
public void InsertReferenceField(ReferenceFieldBase field)
The reference field to insert.