Resolves a named document variable and displays its value as the field result.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentVariableField : CodeBasedField, ISupportInitialize
Inheritance: objectFieldCodeBasedFieldDocumentVariableField
Implements:
Inherited Members
Constructors
Creates a document-variable field with its variable-name property initialized.
public DocumentVariableField()
Fields
Identifies the field-code token for document-variable fields.
public static readonly string FieldType
Identifies the field-code property that stores the variable name.
public static readonly FieldPropertyDefinition VariableNameProperty
Properties
Gets the name of the field type.
public override string FieldTypeName { get; }
Overrides:
Gets or sets the name used to look up a value in the document's variable collection.
[XamlSerializable]
public string VariableName { get; set; }
Methods
Builds the field-specific parts of the code fragment, using the current CodeBuilder.
protected override void BuildCodeOverride()
Overrides:
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 field-specific properties from a FieldCodeExpression.
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
The field code expression.
Overrides:
Creates a new instance of the current field class.
Builds the result fragment of the field.
protected override DocumentFragment GetResultFragment()
The result fragment.
Overrides: