Class
FieldCodeParser

Parses field code expressions in Telerik documents.

Definition

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

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class FieldCodeParser

Inheritance: objectFieldCodeParser

Constructors

FieldCodeParser()

Declaration

cs-api-definition
public FieldCodeParser()

Methods

TryParse(DocumentFragment, out FieldCodeExpression)

Parses a DocumentFragment to extract a FieldCodeExpression.

Declaration

cs-api-definition
public bool TryParse(DocumentFragment fragment, out FieldCodeExpression fieldCodeExpression)

Parameters

fragment

DocumentFragment

The DocumentFragment to be parsed.

fieldCodeExpression

FieldCodeExpression

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.

TryParse(string, out FieldCodeExpression)

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

Declaration

cs-api-definition
public bool TryParse(string fieldCode, out FieldCodeExpression fieldCodeExpression)

Parameters

fieldCode

string

The field code string to be parsed.

fieldCodeExpression

FieldCodeExpression

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.