ClassCodeBasedField
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
CodeBasedField()
Initializes a new instance of the CodeBasedField class.
Declaration
public CodeBasedField()
Fields
DateTimeFormattingProperty
The date time formatting.
Declaration
public static readonly FieldPropertyDefinition DateTimeFormattingProperty
Field Value
GeneralFormattingProperty
The general formatting.
Declaration
public static readonly FieldPropertyDefinition GeneralFormattingProperty
Field Value
NumericFormattingProperty
The numeric formatting.
Declaration
public static readonly FieldPropertyDefinition NumericFormattingProperty
Field Value
Properties
CodeBuilder
Gets the FieldCodeBuilder used to create the code fragment of the field.
Declaration
protected FieldCodeBuilder CodeBuilder { get; }
Property Value
DateTimeFormatting
Represents the formatting options for a DateTime field in a document model.
Declaration
[XamlSerializable]
public string DateTimeFormatting { get; set; }
Property Value
FieldCode
Gets the code of the field.
GeneralFormatting
Represents the general formatting for code-based fields in the Telerik document model.
Declaration
[XamlSerializable]
public string GeneralFormatting { get; set; }
Property Value
NumericFormatting
/// Represents the numeric formatting options for code-based fields in Telerik documents.
Declaration
[XamlSerializable]
public string NumericFormatting { get; set; }
Property Value
Methods
BuildCodeOverride()
Builds the field-specific parts of the code fragment, using the current CodeBuilder.
Declaration
protected virtual void BuildCodeOverride()
CopyPropertiesFrom(Field)
Copies all properties from another field of the same type.
Declaration
public override void CopyPropertiesFrom(Field fromField)
Parameters
fromField
The other field, which has to be of the same type as the current instance.
Overrides
CopyPropertiesFrom(FieldCodeExpression)
Copies the properties of the field from a FieldCodeExpression instance.
Declaration
public void CopyPropertiesFrom(FieldCodeExpression fieldCodeExpression)
Parameters
fieldCodeExpression
The field code expression.
CopyPropertiesFromCodeExpression(FieldCodeExpression)
Copies the field-specific properties from a FieldCodeExpression.
Declaration
protected virtual void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
Parameters
fieldCodeExpression
The field code expression.
GetCodeFragment()
Gets the code fragment of the field. If the code is currently not valid, it will be rebuilt.
Declaration
protected override DocumentFragment GetCodeFragment()
Returns
The code fragment
Overrides
InvalidateCode()
Invalidates the code fragment of the field. The next time the code fragment is requested, it will be built anew.
Declaration
protected void InvalidateCode()
IsCodeValid()
Gets the value indicating whether the code in the code fragment is currently valid.
Declaration
protected override bool IsCodeValid()
Returns
The value indicating whether the code in the code fragment is currently valid.
Overrides
MakeHyperlinkFragment(DocumentFragment, HyperlinkInfo)
Declaration
protected DocumentFragment MakeHyperlinkFragment(DocumentFragment fragment, HyperlinkInfo hyperlinkInfo)
Parameters
fragment
hyperlinkInfo
Returns