Retrieves a Category object that represents the category or sub category in which the
element resides.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Syntax
Remarks
All category objects can be retrieved from the application by using the Categories property
of the Application.Settings object.