DirectShape.CreateElement
Description:
Creates a DirectShape object and adds it to document.
Creates a DirectShape object and adds it to document.
public static DirectShape CreateElement(
Document document,
ElementId categoryId
)
-
documentDocument to which the created element will be added.
-
categoryIdId of the category assigned to this DirectShape. Must be a valid category id.
-
Document document may not contain DirectShape or DirectShapeType objects. -or- Element id categoryId may not be used as a DirectShape category.
-
A non-optional argument was null