SymbolField
Represents a field which inserts a character with certain font and size.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class SymbolField : CodeBasedField, ISupportInitialize
Inheritance: objectFieldCodeBasedFieldSymbolField
Implements:
Inherited Members
Constructors
Initializes a new instance of the SymbolField class.
public SymbolField()
Fields
The property containing the value of the char code.
public static readonly FieldPropertyDefinition CharCodeProperty
The property containing the value of the font name.
public static readonly FieldPropertyDefinition FontNameProperty
The property containing the value of the font size.
public static readonly FieldPropertyDefinition FontSizeProperty
Properties
Gets or sets the code point value of the char which will be formatted by the formatting switches.
The value can be specified in decimal or hexadecimal. When it is hexadecimal, it must have a leading "0X" or "0x".
[XamlSerializable]
public string CharCode { get; set; }
The name of the field type.
public override string FieldTypeName { get; }
Overrides:
Gets or sets the name of the font which will be applied on the character whose code is specified in the CharCode property. By default, the font used is that of the current span.
[XamlSerializable]
public string FontName { get; set; }
Gets or sets the font size which will be applied on the character whose code is specified in the CharCode property. By default, the font size used is that of the current span.
[XamlSerializable]
public string FontSize { get; set; }
Gets or sets the value which indicates whether the value of the CharCode property will be interpreted as the value of an ANSI character.
[XamlSerializable]
public bool IsAnsi { 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: