FormatOptions.IsValidUnitSymbol
Description:
Checks whether a unit symbol is valid for a given display unit.
Checks whether a unit symbol is valid for a given display unit.
Overloads (2):
IsValidUnitSymbol(DisplayUnitType,UnitSymbolType)
[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `IsValidSymbol(ForgeTypeId, ForgeTypeId)` method instead.")]
public static bool IsValidUnitSymbol(
DisplayUnitType displayUnit,
UnitSymbolType unitSymbol
)
-
displayUnitThe display unit.
-
unitSymbolThe unit symbol to check.
Return Value
bool
True if the unit symbol is valid, false otherwise.
-
displayUnit is an invalid display unit. See UnitUtils.IsValidDisplayUnit(DisplayUnitType) and UnitUtils.GetValidDisplayUnits().
-
A value passed for an enumeration argument is not a member of that enumeration