[]
Provides access to shape ranges by shape name or index arrays.
This interface is returned by Range and lets you retrieve an IShapeRange from selected shapes.
public interface IShapeRangeProvider
Public Interface IShapeRangeProvider
IShapes shapes = worksheet.Shapes;
IShape rectangle = shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
rectangle.Name = "Rectangle 1";
IShape oval = shapes.AddShape(AutoShapeType.Oval, 140, 20, 100, 60);
oval.Name = "Oval 1";
IShapeRangeProvider rangeProvider = shapes.Range;
IShapeRange shapeRange = rangeProvider[new string[] { "Rectangle 1", "Oval 1" }];
| Name | Description |
|---|---|
| this[int[]] | Returns a shape range (IShapeRange) object that represents a subset of the shapes in a shapes collection. Use this overload to create a shape range by specifying the index numbers of the shapes to include. |
| this[string[]] | Returns a shape range (IShapeRange) object that represents a subset of the shapes in an IShapes collection. Use this overload to create a shape range by specifying the names of the shapes to include. |