ContainsKey Method


Checks whether a line weight key exists in the table.

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

Syntax

C#
public bool ContainsKey(
	ExportLineweightKey exportLineweightKey
)
Visual Basic
Public Function ContainsKey ( _
	exportLineweightKey As ExportLineweightKey _
) As Boolean
Visual C++
public:
bool ContainsKey(
	ExportLineweightKey^ exportLineweightKey
)

Parameters

exportLineweightKey
Type: Autodesk.Revit.DB ExportLineweightKey
The export line weight key.

Return Value

True if the line weight exists in the table.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →