DirectShape.IsValidCategoryId
Method
Description:
Test the category id to make sure the category is allowed for a DirectShape or DirectShapeType.
Test the category id to make sure the category is allowed for a DirectShape or DirectShapeType.
Parameters
Parameter | Type | Description |
---|---|---|
categoryId | ElementId | Category id to be tested. |
doc | Document | Document to look up the category by id. |
Return Value
Type | Description |
---|---|
Boolean | True if the category is allowed for a DirectShape or DirectShapeType, false if not. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |