2025 Class
Changes 7
C

LabelUtils

Description:
Used to obtain user-visible names for enums.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.LabelUtils
public class LabelUtils : IDisposable
Name Return Type Description Inherited From
M Dispose() None Releases all resources used by the LabelUtils
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetLabelFor(BuiltInCategory) String Gets the user-visible name for a BuiltInCategory.
M GetLabelFor(BuiltInParameter) String Gets the user-visible name for a BuiltInParameter.
M GetLabelFor(BuiltInParameter, LanguageType) String Gets the user-visible name for a BuiltInParameter in a specific LanguageType.
M GetLabelFor(DuctLossMethodType, Document) String Gets the user-visible name for a DuctLossMethodType.
M GetLabelFor(gbXMLBuildingType, Document) String Gets the user-visible name for a gbXMLBuildingType.
M GetLabelFor(PipeFlowState, Document) String Gets the user-visible name for a PipeFlowState.
M GetLabelFor(PipeLossMethodType, Document) String Gets the user-visible name for a PipeLossMethodType.
M GetLabelForBuiltInParameter(ForgeTypeId) String Gets the user-visible name for a built-in parameter.
M GetLabelForBuiltInParameter(ForgeTypeId, LanguageType) String Gets the user-visible name for a built-in parameter in a specific LanguageType.
M GetLabelForDiscipline(ForgeTypeId) String Gets the user-visible name for a discipline.
M GetLabelForGroup(ForgeTypeId) String Gets the user-visible name for a built-in parameter group. To get the name of parameter group "Other", pass an empty, default-constructed ForgeTypeId.
M GetLabelForSpec(ForgeTypeId) String Gets the user-visible name for a spec.
M GetLabelForSymbol(ForgeTypeId) String Gets the user-visible name for a symbol.
M GetLabelForUnit(ForgeTypeId) String Gets the user-visible name for a unit.
M GetStructuralSectionShapeName(StructuralSectionShape) String Gets the user-visible name for a StructuralSectionShape.
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.