CategoryNameMap
A map that contains a mapping of category name to its category object.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.APIObject
Autodesk.Revit.DB.CategoryNameMap
Autodesk.Revit.DB.Categories
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class CategoryNameMap : APIObject, IEnumerable
The CategoryNameMap type exposes the following members.
Constructors
Name
Description
Public Method
CategoryNameMap
Initializes a new instance of the CategoryNameMap class
Properties
Name
Description
Public Property
IsEmpty
Test to see if the map is empty.
Public Property
Code Example
IsReadOnly
Identifies if the object is read-only or modifiable.
(Inherited from APIObject)
Public Property
Item
Gets or sets a category at a specified name within the map.
Public Property
Size
Returns the number of categories that are in the map.
Methods
Name
Description
Public Method
Clear
Removes every category from the map, rendering it empty.
Public Method
Contains
Tests for the existence of a category with that name within the map.
Public Method
Dispose
Causes the object to release immediately any resources it may be utilizing.
(Inherited from APIObject)
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
Erase
Removes a category with the specified name from the map.
Public Method
ForwardIterator
Retrieve a forward moving iterator to the map.
Public Method
GetEnumerator
Retrieve a forward moving iterator to the map.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
Insert
Insert the specified category with the specified name into the map.
Public Method
ReverseIterator
Retrieve a backward moving iterator to the map.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)