Class CodeBasedField
Inherited Members
Namespace: Telerik.WinForms.Documents.Model
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public abstract class CodeBasedField : Field, ISupportInitialize
Constructors
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 Field
Declaration
protected FieldCodeBuilder CodeBuilder { get; }
Property Value
DateTimeFormatting
Declaration
[XamlSerializable]
public string DateTimeFormatting { get; set; }
Property Value
System.
|
FieldCode
Gets the code of the field.
Declaration
public string FieldCode { get; }
Property Value
System.
|
GeneralFormatting
Declaration
[XamlSerializable]
public string GeneralFormatting { get; set; }
Property Value
System.
|
NumericFormatting
Declaration
[XamlSerializable]
public string NumericFormatting { get; set; }
Property Value
System.
|
Methods
BuildCodeOverride()
Builds the field-specific parts of the code fragment, using the current Code
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
Field
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 Field
Declaration
public void CopyPropertiesFrom(FieldCodeExpression fieldCodeExpression)
Parameters
Field The field code expression. |
CopyPropertiesFromCodeExpression(FieldCodeExpression)
Copies the field-specific properties from a Field
Declaration
protected virtual void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
Parameters
Field 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
Document The code fragment |
Overrides
GetNumberResultWithFormatting(Int32)
Declaration
protected string GetNumberResultWithFormatting(int number)
Parameters
System.
|
Returns
System.
|
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
System. 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
Document
|
Hyperlink
|