Class MergeField
Represents MERGEFIELD.
Inherited Members
Namespace: Telerik.WinForms.Documents.Model
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class MergeField : CodeBasedField, ISupportInitialize
  Constructors
MergeField()
Fields
FieldType
The field type.
Declaration
public static readonly string FieldType
  Field Value
| 
        System.String
         
  | 
    
PropertyPathProperty
Declaration
public static readonly FieldPropertyDefinition PropertyPathProperty
  Field Value
| 
        FieldPropertyDefinition
         
  | 
    
TextAfterIfNotEmptyProperty
Declaration
public static readonly FieldPropertyDefinition TextAfterIfNotEmptyProperty
  Field Value
| 
        FieldPropertyDefinition
         
  | 
    
TextBeforeIfNotEmptyProperty
Declaration
public static readonly FieldPropertyDefinition TextBeforeIfNotEmptyProperty
  Field Value
| 
        FieldPropertyDefinition
         
  | 
    
Properties
FieldTypeName
Gets the name of the field type.
Declaration
public override string FieldTypeName { get; }
  Property Value
| 
        System.String
         
  | 
    
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
| 
        System.Boolean
         
  | 
    
Overrides
PropertyPath
Gets or sets the property associated with this instance.
Declaration
[XamlSerializable]
public string PropertyPath { get; set; }
  Property Value
| 
        System.String
         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
| 
        System.String
         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
| 
        System.String
         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.
Declaration
protected virtual string ConvertToString(object value)
  Parameters
| 
        System.Object
        value
         The value.  | 
    
Returns
| 
        System.String
         The string representation of the value.  | 
    
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
CopyPropertiesFromCodeExpression(FieldCodeExpression)
Copies the field-specific properties from a FieldCodeExpression.
Declaration
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
  Parameters
| 
        FieldCodeExpression
        fieldCodeExpression
         The field code expression.  | 
    
Overrides
CreateInstance()
Creates a new instance of the current field class.
Declaration
public override Field CreateInstance()
  Returns
| 
        Field
         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
| 
        DocumentFragment
         The display name fragment.  | 
    
Overrides
GetResultFragment()
Builds the result fragment of the field.
Declaration
protected override DocumentFragment GetResultFragment()
  Returns
| 
        DocumentFragment
         The result fragment.  |