GetLabelFor Method (DuctLossMethodType, Document)


Gets the user-visible name for a DuctLossMethodType.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public static string GetLabelFor(
	DuctLossMethodType ductLossMethodType,
	Document doc
)
Visual Basic
Public Shared Function GetLabelFor ( _
	ductLossMethodType As DuctLossMethodType, _
	doc As Document _
) As String
Visual C++
public:
static String^ GetLabelFor(
	DuctLossMethodType ductLossMethodType, 
	Document^ doc
)

Parameters

ductLossMethodType
Type: Autodesk.Revit.DB.MechanicalDuctLossMethodType
The DuctLossMethodType to get the user-visible name.
doc
Type: Autodesk.Revit.DBDocument
The document from which to get the DuctLossMethodType.

Remarks

The name is obtained in the current Revit language.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsInvalidOperationException Thrown when information for the input DuctLossMethodType cannot be found.

See Also