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

Represents a switch token in a field instruction.

Definition

Namespace:Telerik.WinForms.Documents.FormatProviders.Utils

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class FieldSwitchToken : FieldToken

Inheritance: objectFieldTokenFieldSwitchToken

Constructors

Creates a switch token without assigning its switch text.

C#
public FieldSwitchToken()

Switch remains null until assigned.

Creates a switch token with the specified text.

C#
public FieldSwitchToken(string @switch)
Parameters:switchstring

The switch text.

Properties

Gets or sets the switch text; assigning a value converts it to lowercase.

C#
public string Switch { get; set; }

Methods

Returns a diagnostic representation prefixed with Switch:.

C#
public override string ToString()
Returns:

string

The switch text with its token type label.

Overrides: object.ToString()