Namespace TallComponents.PDF.Shapes
Class LayerShape
A layer shape can be seen as a canvas. You draw on this canvas by adding shapes to it, they will be placed inside this layer.
Syntax
public class LayerShape : ContentShape,IEnumerable<Shape>
Constructors
LayerShape()
Create a new empty layer shape.
LayerShape(Layer)
Create a new empty layer shape, connected to the provided Layer.
Properties
Int32 Count
Number of shapes in this layer.
Shape Item
Get a shape by index (0-based).
Layer Layer
The layer this shape is connected to.
Methods
Void Add(Shape)
Add an existing shape to this layer.
Void AddRange(ShapeCollection)
Adds the elements of a ShapeCollection to the end of this layer.
Void AddRange(Shape[])
Adds the elements of a Shape array to the end of this layer.
Void Clear()
Remove all shapes from this collection.
Shape Clone()
Clones a Shape.
Boolean Contains(Shape)
Determine whether an Shape is in the LayerShape.
IEnumerator<Shape> GetEnumerator()
Implements strong typed IEnumerable<T>.GetEnumerator.
Int32 IndexOf(Shape)
Returns the index of the specified shape.
Void Insert(Int32,Shape)
Insert an existing shape at the specified index.
Boolean Remove(Shape)
Remove a shape from this layer.
Void RemoveAt(Int32)
Remove a shape at the specified index.