ReferenceFieldBase
Represents the base class for reference fields in the Telerik document model.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public abstract class ReferenceFieldBase : CodeBasedField, ISupportInitialize
Inheritance: objectFieldCodeBasedFieldReferenceFieldBase
Derived Classes:
Implements:
Inherited Members
Constructors
public ReferenceFieldBase()
Fields
Gets or sets the name of the bookmark associated with the reference field.
public static readonly FieldPropertyDefinition BookmarkNameProperty
A string representing the bookmark name. This property is used to identify the bookmark in the document's structure for navigation or linking purposes.
protected static readonly string ReferenceSourceNotFoundError
Properties
Gets or sets the name of the bookmark associated with the reference field.
[XamlSerializable]
public string BookmarkName { get; set; }
Determines whether a hyperlink should be created for the reference field.
[XamlSerializable(false)]
public bool ShouldCreateHyperlink { get; set; }
Determines whether the relative position of the reference field should be displayed.
[XamlSerializable(false)]
public bool ShouldDisplayRelativePosition { get; set; }
Methods
Builds the field-specific parts of the code fragment, using the current CodeBuilder.
protected override void BuildCodeOverride()
Overrides:
Copies all properties from another field of the same type.
public override void CopyPropertiesFrom(Field fromField)
The other field, which has to be of the same type as the current instance.
Overrides:
Copies the field-specific properties from a FieldCodeExpression.
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
The field code expression.
Overrides:
protected DocumentFragment GetRelativePositionString(DocumentPosition bookmarkPosition, DocumentPosition currentPosition)