[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShapeRangeProvider

IShapeRangeProvider Interface

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.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public interface IShapeRangeProvider
Public Interface IShapeRangeProvider
Examples
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" }];

Properties

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.