Item Property


Gets or sets a category at a specified name within the map.

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

Syntax

C#
public virtual Category this[
	string key
] { get; set; }
Visual Basic
Public Overridable Property Item ( _
	key As String _
) As Category
	Get
	Set
Visual C++
public:
virtual property Category^ Item[String^ key] {
	Category^ get (String^ key);
	void set (String^ key, Category^ value);
}

Parameters

key
Type: SystemString
The name of the category to be set or retrieved.

Return Value

Returns the category at the specified name.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →