ClassMergeField
Represents MERGEFIELD.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class MergeField : CodeBasedField, ISupportInitialize
Inheritance: objectFieldCodeBasedFieldMergeField
Implements:
Inherited Members
Constructors
MergeField()
Initializes a new instance of the MergeField class.
Declaration
public MergeField()
Fields
FieldType
The field type.
PropertyPathProperty
Declaration
public static readonly FieldPropertyDefinition PropertyPathProperty
Field Value
TextAfterIfNotEmptyProperty
Declaration
public static readonly FieldPropertyDefinition TextAfterIfNotEmptyProperty
Field Value
TextBeforeIfNotEmptyProperty
Declaration
public static readonly FieldPropertyDefinition TextBeforeIfNotEmptyProperty
Field Value
Properties
FieldTypeName
Gets the name of the field type.
Declaration
public override string FieldTypeName { get; }
Property Value
Overrides
HasDisplayNameFragment
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.
Declaration
public override bool HasDisplayNameFragment { get; }
Property Value
Overrides
PropertyPath
Gets or sets the property associated with this instance.
Declaration
[XamlSerializable]
public string PropertyPath { get; set; }
Property Value
The property path/name.
TextAfterIfNotEmpty
Gets or sets the text after the field result, used when the latter is not empty.
Declaration
[XamlSerializable]
public string TextAfterIfNotEmpty { get; set; }
Property Value
The text.
TextBeforeIfNotEmpty
Gets or sets the text before the field result, used when the latter is not empty.
Declaration
[XamlSerializable]
public string TextBeforeIfNotEmpty { get; set; }
Property Value
The text.
Methods
BuildCodeOverride()
Builds the field-specific parts of the code fragment, using the current CodeBuilder.
Declaration
protected override void BuildCodeOverride()
Overrides
ConvertToString(object)
Converts a value to string.
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
CopyPropertiesFromCodeExpression(FieldCodeExpression)
Copies the field-specific properties from a FieldCodeExpression.
Declaration
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
Parameters
fieldCodeExpression
The field code expression.
Overrides
CreateInstance()
Creates a new instance of the current field class.
Declaration
public override Field CreateInstance()
Returns
The new field instance.
Overrides
GetDisplayNameFragment()
Gets the display name fragment of the field if the field has such.
Declaration
protected override DocumentFragment GetDisplayNameFragment()
Returns
The display name fragment.
Overrides
GetResultFragment()
Builds the result fragment of the field.
Declaration
protected override DocumentFragment GetResultFragment()
Returns
The result fragment.
Overrides