CodeBasedField
Represents a code-based field in the Telerik Windows Documents Model.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public abstract class CodeBasedField : Field, ISupportInitialize
Inheritance: objectFieldCodeBasedField
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the CodeBasedField class.
public CodeBasedField()
Fields
The date time formatting.
public static readonly FieldPropertyDefinition DateTimeFormattingProperty
The general formatting.
public static readonly FieldPropertyDefinition GeneralFormattingProperty
The numeric formatting.
public static readonly FieldPropertyDefinition NumericFormattingProperty
The ToolTip field property definition.
public static readonly FieldPropertyDefinition ToolTipProperty
Properties
Gets the FieldCodeBuilder used to create the code fragment of the field.
protected FieldCodeBuilder CodeBuilder { get; }
Represents the formatting options for a DateTime field in a document model.
[XamlSerializable]
public string DateTimeFormatting { get; set; }
Represents the general formatting for code-based fields in the Telerik document model.
[XamlSerializable]
public string GeneralFormatting { get; set; }
/// Represents the numeric formatting options for code-based fields in Telerik documents.
[XamlSerializable]
public string NumericFormatting { get; set; }
Methods
Builds the field-specific parts of the code fragment, using the current CodeBuilder.
protected virtual void BuildCodeOverride()
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 properties of the field from a FieldCodeExpression instance.
public void CopyPropertiesFrom(FieldCodeExpression fieldCodeExpression)
The field code expression.
Copies the field-specific properties from a FieldCodeExpression.
protected virtual void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
The field code expression.
Gets the code fragment of the field. If the code is currently not valid, it will be rebuilt.
protected override DocumentFragment GetCodeFragment()
The code fragment
Overrides:
Invalidates the code fragment of the field. The next time the code fragment is requested, it will be built anew.
protected void InvalidateCode()
Gets the value indicating whether the code in the code fragment is currently valid.
protected override bool IsCodeValid()
The value indicating whether the code in the code fragment is currently valid.
Overrides:
protected DocumentFragment MakeHyperlinkFragment(DocumentFragment fragment, HyperlinkInfo hyperlinkInfo)