[]
Represents a shape range, which is a set of shapes on a document.
public interface IShapeRange : IReadOnlyList<IShape>, IReadOnlyCollection<IShape>, IEnumerable<IShape>, IEnumerable
Public Interface IShapeRange
Inherits IReadOnlyList(Of IShape), IReadOnlyCollection(Of IShape), IEnumerable(Of IShape), IEnumerable
IShapes shapes = worksheet.Shapes;
shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
shapes.AddShape(AutoShapeType.Oval, 140, 20, 100, 60);
IShapeRange shapeRange = shapes.Range[new int[] { 0, 1 }];
int count = shapeRange.Count;
| Name | Description |
|---|---|
| this[string] | Returns a single object from a collection. |
| Name | Description |
|---|---|
| Group() | Groups the shapes in the specified range. |