DirectShapeType.Create
Description:
Creates a DirectShapeType element.
Creates a DirectShapeType element.
Overloads (2):
Create(Document,String,ElementId,DirectShapeTypeOptions)
public static DirectShapeType Create(
Document document,
string name,
ElementId categoryId,
DirectShapeTypeOptions options
)
-
documentDocument to which the created element will be added.
-
StringnameName of the DirectShapeType.
-
categoryIdId of the category assigned to this DirectShapeType. Must be a valid category id.
-
optionsOptions that can be used to control the behavior of DirectShapeType being created.
-
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