CodeBasedField
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.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
Properties
Gets the FieldCodeBuilder used to create the code fragment of the field.
protected FieldCodeBuilder CodeBuilder { get; }
[XamlSerializable]
public string DateTimeFormatting { get; set; }
[XamlSerializable]
public string GeneralFormatting { get; set; }
[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)