2021 Class
Changes 8
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) The formatted string. Formats a number with units into a string.
M Format(Units, ForgeTypeId, Double, Boolean, FormatValueOptions) The formatted string. Formats a number with units into a string.
M Format(Units, UnitType, Double, Boolean) The formatted string. Formats a number with units into a string.
M Format(Units, UnitType, Double, Boolean, Boolean) The formatted string. Formats a number with units into a string.
M Format(Units, UnitType, Double, Boolean, Boolean, FormatValueOptions) The formatted string. Formats a number with units into a string.
M Format(Units, UnitType, Double, Boolean, FormatValueOptions) The formatted string. Formats a number with units into a string.
M TryParse(Units, ForgeTypeId, String, Double%) bool Parses a formatted string into a number with units if possible.
M TryParse(Units, ForgeTypeId, String, Double%, String%) bool Parses a formatted string into a number with units if possible.
M TryParse(Units, ForgeTypeId, String, ValueParsingOptions, Double%) bool Parses a formatted string into a number with units if possible.
M TryParse(Units, ForgeTypeId, String, ValueParsingOptions, Double%, String%) bool Parses a formatted string into a number with units if possible.
M TryParse(Units, UnitType, String, Double%) bool Parses a formatted string into a number with units if possible.
M TryParse(Units, UnitType, String, Double%, String%) bool Parses a formatted string into a number with units if possible.
M TryParse(Units, UnitType, String, ValueParsingOptions, Double%) bool Parses a formatted string into a number with units if possible.
M TryParse(Units, UnitType, String, ValueParsingOptions, Double%, String%) bool Parses a formatted string into a number with units if possible.