New to Telerik UI for WinForms? Start a free 30-day trial

Represents an unquoted or quoted text token in a field instruction.

Definition

Namespace:Telerik.WinForms.Documents.FormatProviders.Utils

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class FieldTextToken : FieldToken

Inheritance: objectFieldTokenFieldTextToken

Constructors

Creates a text token without assigning its text.

C#
public FieldTextToken()

Text remains null until assigned.

Creates a text token with the specified content.

C#
public FieldTextToken(string text)
Parameters:textstring

The token content.

Properties

Gets or sets the token text. For quoted tokens from FieldTokenizer, surrounding quotes and escape backslashes are omitted, but the escaped character is retained; backslashes in unquoted text remain literal.

C#
public string Text { get; set; }

Methods

Returns a diagnostic representation prefixed with Text:.

C#
public override string ToString()
Returns:

string

The token text with its token type label.

Overrides: object.ToString()