ClassFieldCodeParser
Parses field code expressions in Telerik documents.
Definition
Namespace:Telerik.Windows.Documents.Model.Fields.CodeExpressions
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class FieldCodeParser
Inheritance: objectFieldCodeParser
Constructors
FieldCodeParser()
Declaration
public FieldCodeParser()
Methods
TryParse(DocumentFragment, out FieldCodeExpression)
Parses a DocumentFragment to extract a FieldCodeExpression.
Declaration
public bool TryParse(DocumentFragment fragment, out FieldCodeExpression fieldCodeExpression)
Parameters
fragment
The DocumentFragment to be parsed.
fieldCodeExpression
When this method returns, contains the parsed FieldCodeExpression if the parse was successful; otherwise, it will be null.
Returns
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
public bool TryParse(string fieldCode, out FieldCodeExpression fieldCodeExpression)
Parameters
fieldCode
The field code string to be parsed.
fieldCodeExpression
When this method returns, contains the parsed FieldCodeExpression if the parsing succeeded; otherwise, it will be null.
Returns
Returns true if the parsing was successful; otherwise, false.