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

Parses field code expressions in Telerik documents.

Definition

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

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class FieldCodeParser

Inheritance: objectFieldCodeParser

Constructors

C#
public FieldCodeParser()

Methods

Parses a DocumentFragment to extract a FieldCodeExpression.

C#
public bool TryParse(DocumentFragment fragment, out FieldCodeExpression fieldCodeExpression)
Parameters:fragmentDocumentFragment

The DocumentFragment to be parsed.

fieldCodeExpressionFieldCodeExpression

When this method returns, contains the parsed FieldCodeExpression if the parse was successful; otherwise, it will be null.

Returns:

bool

True if the parsing was successful; otherwise, false.

Attempts to parse a given field code string into a FieldCodeExpression object.

C#
public bool TryParse(string fieldCode, out FieldCodeExpression fieldCodeExpression)
Parameters:fieldCodestring

The field code string to be parsed.

fieldCodeExpressionFieldCodeExpression

When this method returns, contains the parsed FieldCodeExpression if the parsing succeeded; otherwise, it will be null.

Returns:

bool

Returns true if the parsing was successful; otherwise, false.