LabelUtils
Used to obtain user-visible names for enums.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.LabelUtils
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class LabelUtils : IDisposableThe LabelUtils type exposes the following members.
Properties
Name
Description
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Methods
Name
Description
Public Method
Dispose
Releases all resources used by the LabelUtils
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
Static Member
GetLabelFor(BuiltInCategory)
Gets the user-visible name for a BuiltInCategory.
Public Method
Static Member
GetLabelFor(BuiltInParameter)
Gets the user-visible name for a BuiltInParameter.
Public Method
Static Member
GetLabelFor(BuiltInParameter, LanguageType)
Gets the user-visible name for a BuiltInParameter in a specific LanguageType.
Public Method
Static Member
GetLabelFor(DuctLossMethodType, Document)
Gets the user-visible name for a DuctLossMethodType.
Public Method
Static Member
GetLabelFor(gbXMLBuildingType, Document)
Gets the user-visible name for a gbXMLBuildingType.
Public Method
Static Member
GetLabelFor(PipeFlowState, Document)
Gets the user-visible name for a PipeFlowState.
Public Method
Static Member
GetLabelFor(PipeLossMethodType, Document)
Gets the user-visible name for a PipeLossMethodType.
Public Method
Static Member
GetLabelForBuiltInParameter(ForgeTypeId)
Gets the user-visible name for a built-in parameter.
Public Method
Static Member
GetLabelForBuiltInParameter(ForgeTypeId, LanguageType)
Gets the user-visible name for a built-in parameter in a specific LanguageType.
Public Method
Static Member
GetLabelForDiscipline
Gets the user-visible name for a discipline.
Public Method
Static Member
GetLabelForGroup
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 Method
Static Member
GetLabelForSpec
Gets the user-visible name for a spec.
Public Method
Static Member
GetLabelForSymbol
Gets the user-visible name for a symbol.
Public Method
Static Member
GetLabelForUnit
Gets the user-visible name for a unit.
Public Method
Static Member
GetStructuralSectionShapeName
Gets the user-visible name for a StructuralSectionShape.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)