VectorImage is an interface wrapper accessible as a property of the Document object and can be used to access and manipulate elements in a vector image.
Methods and properties
array ElementIDs - retrieve an array of element identifiers.
void DeleteElement(uint elementID) - removes element with the given ID from the vector image.
uint CreateElement(string toolID, string params) - create a new element and place it into the vector image. Element identifier is returned. The params parameter is optional. The toolID parameter is one of the drawing tools. Only selected drawing tools may be used in a vector image. The semantic of the params parameter depends on the selected tool.
void ModifyElement(uint elementID, string toolID, string params) - replace the element with the given ID with a different element.
string GetElementName(uint elementID)
void SetElementName(uint elementID, string name)
string GetElementStyleID(uint elementID) - retrieves fill style associated with given element.