New to Telerik UI for WinFormsStart a free 30-day trial

Represents a field which inserts a character with certain font and size.

Definition

Constructors

Initializes a new instance of the SymbolField class.

C#
public SymbolField()

Fields

The property containing the value of the char code.

C#
public static readonly FieldPropertyDefinition CharCodeProperty

The symbol field type name.

C#
public static readonly string FieldType

The property containing the value of the font name.

C#
public static readonly FieldPropertyDefinition FontNameProperty

The property containing the value of the font size.

C#
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".

C#
[XamlSerializable]
public string CharCode { get; set; }

The name of the field type.

C#
public override string FieldTypeName { get; }

Overrides: Field.FieldTypeName

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.

C#
[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.

C#
[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.

C#
[XamlSerializable]
public bool IsAnsi { get; set; }

Gets or sets the value which indicates whether the value of the CharCode property will be interpreted as the value of a Unicode character.

C#
[XamlSerializable]
public bool IsUnicode { get; set; }

Methods

Builds the field-specific parts of the code fragment, using the current CodeBuilder.

C#
protected override void BuildCodeOverride()

Overrides: CodeBasedField.BuildCodeOverride()

Copies all properties from another field of the same type.

C#
public override void CopyPropertiesFrom(Field fromField)
Parameters:fromFieldField

The other field, which has to be of the same type as the current instance.

Overrides: CodeBasedField.CopyPropertiesFrom(Field)

Copies the field-specific properties from a FieldCodeExpression.

C#
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
Parameters:fieldCodeExpressionFieldCodeExpression

The field code expression.

Overrides: CodeBasedField.CopyPropertiesFromCodeExpression(FieldCodeExpression)

Creates a new instance of the current field class.

C#
public override Field CreateInstance()
Returns:

Field

The new field instance.

Overrides: Field.CreateInstance()

Builds the result fragment of the field.

C#
protected override DocumentFragment GetResultFragment()
Returns:

DocumentFragment

The result fragment.

Overrides: Field.GetResultFragment()