<Code Lib>
M

UnitFormatUtils.TryParse(Units, UnitType, String, ValueParsingOptions, Double, String)

Description:
Parses a formatted string into a number with units if possible.

[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `TryParse(Units, ForgeTypeId, string, ValueParsingOptions, out double, out string)` overload instead.")]
public static bool TryParse(
	Units units,
	UnitType unitType,
	string stringToParse,
	ValueParsingOptions valueParsingOptions,
	out double value,
	out string message
)

Return Value bool True if the string can be parsed, false otherwise.

Loading…