LabelUtils Class

Used to obtain user-visible names for enums.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBLabelUtils

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class LabelUtils : IDisposable

The LabelUtils type exposes the following members.

Properties
 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by the LabelUtils
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetLabelFor(BuiltInCategory) Gets the user-visible name for a BuiltInCategory.
Public methodStatic memberGetLabelFor(BuiltInParameter) Gets the user-visible name for a BuiltInParameter.
Public methodStatic memberGetLabelFor(BuiltInParameter, LanguageType) Gets the user-visible name for a BuiltInParameter in a specific LanguageType.
Public methodStatic memberGetLabelFor(DuctLossMethodType, Document) Gets the user-visible name for a DuctLossMethodType.
Public methodStatic memberGetLabelFor(gbXMLBuildingType, Document) Gets the user-visible name for a gbXMLBuildingType.
Public methodStatic memberGetLabelFor(PipeFlowState, Document) Gets the user-visible name for a PipeFlowState.
Public methodStatic memberGetLabelFor(PipeLossMethodType, Document) Gets the user-visible name for a PipeLossMethodType.
Public methodStatic memberGetLabelForBuiltInParameter(ForgeTypeId) Gets the user-visible name for a built-in parameter.
Public methodStatic memberGetLabelForBuiltInParameter(ForgeTypeId, LanguageType) Gets the user-visible name for a built-in parameter in a specific LanguageType.
Public methodStatic memberGetLabelForDiscipline Gets the user-visible name for a discipline.
Public methodStatic memberGetLabelForGroup 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.
Public methodStatic memberGetLabelForSpec Gets the user-visible name for a spec.
Public methodStatic memberGetLabelForSymbol Gets the user-visible name for a symbol.
Public methodStatic memberGetLabelForUnit Gets the user-visible name for a unit.
Public methodStatic memberGetStructuralSectionShapeName Gets the user-visible name for a StructuralSectionShape.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also