Description:

Formats the contents of a text string with field expressions and returns the result

Syntax:
public static bool TryFormat(
string text,
RhinoDoc doc,
out string result
)
Parameters:
  • text
  • Type: string
  • The text formula to format
  • doc
  • Type: RhinoDoc
  • The Rhino document to evaluate
  • result
  • Type: string
  • The result of the formatted expression. Otherwise, if the text is null or the evaluation process fails, the result will be empty.
Returns:
Type: bool
Returns True if the expression is formatted properly; Otherwise False.
Available since:
8.0

TryFormat method

Class:  Rhino.Runtime.TextFields

Nothing found