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

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:

C#
public class FieldSwitchNode : FieldNodeWithArgumentBase, IFieldCodeExpressionNode

Inheritance: objectFieldNodeWithArgumentBaseFieldSwitchNode

Implements: IFieldCodeExpressionNode

Inherited Members FieldNodeWithArgumentBase.FieldArgumentNode

Constructors

C#
public FieldSwitchNode(string switchCharacters)
Parameters:switchCharactersstring

Properties

Gets or sets the switch characters for the FieldSwitchNode.

C#
public string SwitchCharacters { get; }
Property Value:

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

Methods

Retrieves the code expression fragment associated with the FieldSwitchNode.

C#
public override IEnumerable<Inline> GetCodeExpressionFragment()
Returns:

IEnumerable<Inline>

A string representing the code expression fragment.

Overrides: FieldNodeWithArgumentBase.GetCodeExpressionFragment()

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

C#
public override string GetCodeExpressionString()
Returns:

string

A string that represents the code expression of the FieldSwitchNode.

Overrides: FieldNodeWithArgumentBase.GetCodeExpressionString()