Parses a formatted string into a number with units if possible.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since:
2014
Syntax
| C# |
|---|
public static bool TryParse(
Units units,
ForgeTypeId specTypeId,
string stringToParse,
out double value
) |
| Visual Basic |
|---|
Public Shared Function TryParse ( _
units As Units, _
specTypeId As ForgeTypeId, _
stringToParse As String, _
<OutAttribute> ByRef value As Double _
) As Boolean |
| Visual C++ |
|---|
public:
static bool TryParse(
Units^ units,
ForgeTypeId^ specTypeId,
String^ stringToParse,
[OutAttribute] double% value
) |
Return Value
True if the string can be parsed, false otherwise.
Exceptions
See Also