2027 Class
Changes 1
C

UnitFormatUtils

Description:
A utility class for formatting and parsing numbers with units.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.UnitFormatUtils
public static class UnitFormatUtils
Name Return Type Description
M Format(Units, ForgeTypeId, Double, Boolean) String Formats a number with units into a string.
M Format(Units, ForgeTypeId, Double, Boolean, FormatValueOptions) String Formats a number with units into a string.
M TryParse(Units, ForgeTypeId, String, Double%) Boolean Parses a formatted string into a number with units if possible.
M TryParse(Units, ForgeTypeId, String, ValueParsingOptions, Double%) Boolean Parses a formatted string into a number with units if possible.
M TryParse(Units, ForgeTypeId, String, Double%, String%) Boolean Parses a formatted string into a number with units if possible.
M TryParse(Units, ForgeTypeId, String, ValueParsingOptions, Double%, String%) Boolean Parses a formatted string into a number with units if possible.