FieldCodeBuilder
Represents a builder for constructing field code expressions in Telerik document models.
Definition
Namespace:Telerik.Windows.Documents.Model.Fields.CodeExpressions
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class FieldCodeBuilder
Inheritance: objectFieldCodeBuilder
Constructors
Methods
Adds a switch statement to the field code builder with the specified case expression and field property.
public void AddSwitch(string switchCharacters, FieldProperty prop)
The field property associated with the switch statement.
propFieldPropertyThe case expression as a string that will be used in the switch statement.
Adds a switch statement to the field code builder using the specified expression.
public void AddSwitch(string switchCharacters)
The expression that defines the switch statement.
Retrieves the code expression fragment associated with the field code builder.
public IEnumerable<Inline> GetCodeExpressionFragment()
A string representing the code expression fragment.
Gets the result code generated by the field code builder.
Rebuilds a field code from the specified input string.
public void RebuildFromCode(string fieldCode)
The input string that represents the field code to be rebuilt.
Resets the state of the FieldCodeBuilder, clearing any existing code expressions.
public void Reset()
Sets the argument for a field in the document model.
public void SetFieldArgument(FieldProperty prop)
The field property to be set as an argument for the field.