ShapeCollection

ShapeCollection class

Collection of Shapes.

public class ShapeCollection : Collection

Properties

Name Description
Count { get; } Gets the number of elements actually contained in the collection.
Item { get; } Gets the element at the specified index.

Methods

Name Description
Add(Shape) Add the shape in the collection.
Clear() Removes all elements from collection.
GetEnumerator() Supports a simple iteration over a nongeneric collection.
GetShape(long) Gets the element at the specified ID.
GetShape(string) Gets the element at the specified name.
GetShapeIncludingChild(int) Gets the element including it’s child shape at the specified id.
GetShapeIncludingChild(string) Gets the element including it’s child shape at the specified name.
Group(Shape[]) Group the shapes.
IsExist(int) Is exist item in the collection.
Remove(Shape) Remove the shape from the collection.
RemoveDependsOn(Shape) Remove the shapes including DEPENDSON shapes from the collection.
UnGroup(Shape) UnGroup the shape.

See Also