Class ShapeCollection

ShapeCollection class

Collection of Shapes.

public class ShapeCollection : Collection<Shape>

Properties

NameDescription
Capacity { get; set; }
Count { get; }
Item { get; set; }

Methods

NameDescription
Add(Shape)Add the shape in the collection.
BinarySearch(Shape)
BinarySearch(Shape, IComparer<Shape>)
BinarySearch(int, int, Shape, IComparer<Shape>)
Clear()
Contains(Shape)
CopyTo(Shape[])
CopyTo(Shape[], int)
CopyTo(int, Shape[], int, int)
Exists(Predicate<Shape>)
Find(Predicate<Shape>)
FindAll(Predicate<Shape>)
FindIndex(Predicate<Shape>)
FindIndex(int, Predicate<Shape>)
FindIndex(int, int, Predicate<Shape>)
FindLast(Predicate<Shape>)
FindLastIndex(Predicate<Shape>)
FindLastIndex(int, Predicate<Shape>)
FindLastIndex(int, int, Predicate<Shape>)
GetEnumerator()
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.
IndexOf(Shape)
IndexOf(Shape, int)
IndexOf(Shape, int, int)
LastIndexOf(Shape)
LastIndexOf(Shape, int)
LastIndexOf(Shape, int, int)
Remove(Shape)Remove the shape from the collection.
RemoveAt(int)
RemoveDependsOn(Shape)Remove the shapes including DEPENDSON shapes from the collection.
UnGroup(Shape)UnGroup the shape.

See Also