ShapeRange Interface
Represents a shape range, which is a set of shapes on a document. A shape range can contain as few as a single shape or as many as all the shapes on the document.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
<GuidAttribute("9149347A-5A91-11CF-8700-00AA0060263B")> _
Public Interface ShapeRange _
Inherits IEnumerable
'Usage
Dim instance As ShapeRange
[GuidAttribute("9149347A-5A91-11CF-8700-00AA0060263B")]
public interface ShapeRange : IEnumerable
Remarks
You can include whichever shapes you want — chosen from among all the shapes on the document or all the shapes in the selection — to construct a shape range. For example, you could construct a ShapeRange collection that contains the first three shapes on a document, all the selected shapes on a document, or all the freeforms on a document.
For an overview of how to work with either a single shape or with more than one shape at a time, see How to: Work with Shapes (Drawing Objects).
The following examples describe how to:
Return a set of shapes you specify by name or index number.
Return all or some of the selected shapes on a document.