New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public abstract class ReferenceFieldBase : CodeBasedField, ISupportInitialize

Inheritance: objectFieldCodeBasedFieldReferenceFieldBase

Derived Classes: PageReferenceFieldReferenceField

Implements: ISupportInitialize

Inherited Members CodeBasedField.DateTimeFormattingPropertyCodeBasedField.GeneralFormattingPropertyCodeBasedField.NumericFormattingPropertyCodeBasedField.ToolTipPropertyCodeBasedField.CopyPropertiesFrom(FieldCodeExpression)CodeBasedField.InvalidateCode()CodeBasedField.GetCodeFragment()CodeBasedField.MakeHyperlinkFragment(DocumentFragment, HyperlinkInfo)CodeBasedField.GetNumberResultWithFormatting(int)CodeBasedField.IsCodeValid()CodeBasedField.CodeBuilderCodeBasedField.FieldCodeCodeBasedField.DateTimeFormattingCodeBasedField.GeneralFormattingCodeBasedField.NumericFormattingCodeBasedField.ToolTipField.CodeFragmentFormatField.DisplayNameFragmentFormatField.GetFragmentToDisplay()Field.GetFragmentByDisplayMode(FieldDisplayMode)Field.SetFragmentByDisplayMode(FieldDisplayMode, DocumentFragment)Field.CreateInstance()Field.Update()Field.CreateFragmentFromText(string)Field.GetDisplayNameFragment()Field.GetResultFragment()Field.CreateDeepCopy()Field.SetPropertyValue(FieldPropertyDefinition, string)Field.SetPropertyValue(FieldPropertyDefinition, Field)Field.IsResultFragmentEmpty()Field.HasDisplayNameFragmentField.FieldTypeNameField.FieldStartField.DisplayModeField.EvaluationContextField.Document...

Constructors

C#
public ReferenceFieldBase()

Fields

Gets or sets the name of the bookmark associated with the reference field.

C#
public static readonly FieldPropertyDefinition BookmarkNameProperty
Field Value:

A string representing the bookmark name. This property is used to identify the bookmark in the document's structure for navigation or linking purposes.

C#
protected static readonly string ReferenceSourceNotFoundError

Properties

Gets or sets the name of the bookmark associated with the reference field.

C#
[XamlSerializable]
public string BookmarkName { get; set; }

Determines whether a hyperlink should be created for the reference field.

C#
[XamlSerializable(false)]
public bool ShouldCreateHyperlink { get; set; }

Determines whether the relative position of the reference field should be displayed.

C#
[XamlSerializable(false)]
public bool ShouldDisplayRelativePosition { get; set; }

Methods

Builds the field-specific parts of the code fragment, using the current CodeBuilder.

C#
protected override void BuildCodeOverride()

Overrides: CodeBasedField.BuildCodeOverride()

Copies all properties from another field of the same type.

C#
public override void CopyPropertiesFrom(Field fromField)
Parameters:fromFieldField

The other field, which has to be of the same type as the current instance.

Overrides: CodeBasedField.CopyPropertiesFrom(Field)

Copies the field-specific properties from a FieldCodeExpression.

C#
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
Parameters:fieldCodeExpressionFieldCodeExpression

The field code expression.

Overrides: CodeBasedField.CopyPropertiesFromCodeExpression(FieldCodeExpression)

C#
protected DocumentFragment GetRelativePositionString(DocumentPosition bookmarkPosition, DocumentPosition currentPosition)
Parameters:bookmarkPositionDocumentPositioncurrentPositionDocumentPositionReturns:

DocumentFragment