ClassFieldParameters
Contains the parsed arguments, switches, expressions, and comparisons extracted from a field code for use by field implementations.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model.Fields.FieldCode
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public class FieldParameters
Inheritance: objectFieldParameters
Constructors
FieldParameters()
Initializes a new instance of the FieldParameters class.
Declaration
public FieldParameters()
Properties
Comparison
Gets the parsed comparison structure when the field code contains a conditional (e.g., in IF fields).
Declaration
public FieldComparison Comparison { get; }
Property Value
The comparison.
Expression
Gets the expression text when the field code contains a formula or calculation (e.g., in IF or = fields).
Declaration
public string Expression { get; }
Property Value
The expression.
FirstArgument
Gets the first positional argument from the field code, or null if none exists.
Declaration
public FieldArgument FirstArgument { get; }
Property Value
The first field argument.
SecondArgument
Gets the second positional argument from the field code, or null if fewer than two arguments exist.
Declaration
public FieldArgument SecondArgument { get; }
Property Value
The second field argument.
Methods
GetSwitchArguments(string)
Retrieves the argument values for all switches matching the specified key, or an empty list if none exist.
IsSwitchDefined(string)
Checks whether the field code contains a switch with the specified key.
TryGetSwitch(string, out IList<FieldSwitch>)
Attempts to retrieve all switches matching the specified key and returns whether any were found.
Declaration
public bool TryGetSwitch(string switchKey, out IList<FieldSwitch> result)
Parameters
switchKey
The switch key.
result
The result.
Returns
True if there is such switch(es), otherwise - false.