2027 Method
Changes 0
M

DirectShape.CreateElement

Description:
Creates a DirectShape object and adds it to document.
public static DirectShape CreateElement(
	Document document,
	ElementId categoryId
)
  • document
    Document to which the created element will be added.
  • categoryId
    Id of the category assigned to this DirectShape. Must be a valid category id.
Return Value DirectShape The created DirectShape object.
  • 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