2027 Property
Changes 0
P

Categories.Item

Description:
Retrieves a category object corresponding to a BuiltInCategory id.
Remarks:
Unlike the method that obtains categories by name, this routine will obtain the handle even of built-in subcategories. Since 2016 it is advised to use either Category.​​​GetCategory(​Document, ​BuiltIn​Category) or Category.​​​GetCategory(​Document,​ ElementId)​ from Category class.
Overloads (2):
Item(BuiltInCategory)
Item(String)
public virtual Category this[
	BuiltInCategory categoryId
] { get; }