DirectShape.IsValidTypeId
Method
Description:
Tests the type id to make sure it satisfies the following conditions It is a valid element id.It corresponds to a valid DirectShapeType.The DirectShapeType has the same category assigned.
Tests the type id to make sure it satisfies the following conditions It is a valid element id.It corresponds to a valid DirectShapeType.The DirectShapeType has the same category assigned.
Parameters
Parameter | Type | Description |
---|---|---|
typeId | ElementId | Type id to be tested. |
Return Value
Type | Description |
---|---|
Boolean | False unless typeId satisfies the conditions listed above and the type id of this object was not set previously. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |