MergeField
Represents MERGEFIELD.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class MergeField : CodeBasedField, ISupportInitialize
Inheritance: objectFieldCodeBasedFieldMergeField
Implements:
Inherited Members
Constructors
Initializes a new instance of the MergeField class.
public MergeField()
Fields
public static readonly FieldPropertyDefinition PropertyPathProperty
public static readonly FieldPropertyDefinition TextAfterIfNotEmptyProperty
public static readonly FieldPropertyDefinition TextBeforeIfNotEmptyProperty
Properties
Gets the name of the field type.
public override string FieldTypeName { get; }
Overrides:
Gets the value indicating whether the field type has a display name fragment. If it doesn't, when its display mode is set to display name, the result fragment will be used instead.
public override bool HasDisplayNameFragment { get; }
Overrides:
Gets or sets the property associated with this instance.
[XamlSerializable]
public string PropertyPath { get; set; }
The property path/name.
Gets or sets the text after the field result, used when the latter is not empty.
[XamlSerializable]
public string TextAfterIfNotEmpty { get; set; }
The text.
Gets or sets the text before the field result, used when the latter is not empty.
[XamlSerializable]
public string TextBeforeIfNotEmpty { get; set; }
The text.
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.
Gets the display name fragment of the field if the field has such.
protected override DocumentFragment GetDisplayNameFragment()
The display name fragment.
Overrides:
Builds the result fragment of the field.
protected override DocumentFragment GetResultFragment()
The result fragment.
Overrides: