Class
FieldSwitchNode

Represents a switch node in a field code expression that evaluates multiple cases and returns a result based on the matching case.

Definition

Namespace:Telerik.Windows.Documents.Model.Fields.CodeExpressions

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class FieldSwitchNode : FieldNodeWithArgumentBase, IFieldCodeExpressionNode

Inheritance: objectFieldNodeWithArgumentBaseFieldSwitchNode

Implements: IFieldCodeExpressionNode

Inherited Members FieldNodeWithArgumentBase.FieldArgumentNode

Constructors

FieldSwitchNode(string)

Declaration

cs-api-definition
public FieldSwitchNode(string switchCharacters)

Parameters

switchCharacters

string

Properties

SwitchCharacters

Gets or sets the switch characters for the FieldSwitchNode.

Declaration

cs-api-definition
public string SwitchCharacters { get; }

Property Value

string

A collection of characters that define the switch options for the FieldSwitchNode.

Methods

GetCodeExpressionFragment()

Retrieves the code expression fragment associated with the FieldSwitchNode.

Declaration

cs-api-definition
public override IEnumerable<Inline> GetCodeExpressionFragment()

Returns

IEnumerable<Inline>

A string representing the code expression fragment.

Overrides FieldNodeWithArgumentBase.GetCodeExpressionFragment()

GetCodeExpressionString()

Retrieves the string representation of the code expression for the FieldSwitchNode.

Declaration

cs-api-definition
public override string GetCodeExpressionString()

Returns

string

A string that represents the code expression of the FieldSwitchNode.

Overrides FieldNodeWithArgumentBase.GetCodeExpressionString()