[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `Format(Units, ForgeTypeId, double, bool)` overload instead.")]
public static string Format(
	Units units,
	UnitType unitType,
	double value,
	bool forEditing
)
  • units
    The units formatting settings, typically obtained from Document.GetUnits().
  • unitType
    The unit type of the value to format.
  • Double
    value
    The value to format, in Revit's internal units.
  • Boolean
    forEditing
    True if the formatting should be modified as necessary so that the formatted string can be successfully parsed, for example by suppressing digit grouping. False if unmodified settings should be used, suitable for display only.
Return Value The formatted string. The formatted string.