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

Represents a textual field-code argument, escaping it when the argument is written back as code.

Definition

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

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class FieldArgumentNode : IFieldArgumentNode, IFieldCodeExpressionNode

Inheritance: objectFieldArgumentNode

Implements: IFieldArgumentNodeIFieldCodeExpressionNode

Constructors

Creates a text argument and applies the parser's conditional backslash normalization.

C#
public FieldArgumentNode(string argument)
Parameters:argumentstring

The non-empty argument text.

Exceptions: ArgumentNullException

argument is null.

ArgumentException

argument is empty.

Properties

Gets the argument after the parser's conditional backslash normalization; escaped quote characters remain escaped.

C#
public string Text { get; }

Implements: IFieldArgumentNode.Text

Methods

Gets a single inline span containing the serialized argument.

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

IEnumerable<Inline>

The inline representation of the argument.

Implements: IFieldCodeExpressionNode.GetCodeExpressionFragment()

Gets the field-code form of the argument, escaping backslashes and quotes and quoting text that contains whitespace.

C#
public string GetCodeExpressionString()
Returns:

string

The serialized argument text.

Implements: IFieldCodeExpressionNode.GetCodeExpressionString()