Selection.ShapeRange Property
Returns a ShapeRange object that represents all the slide objects that have been selected on the specified slide. Read-only.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property ShapeRange As ShapeRange
Get
'Usage
Dim instance As Selection
Dim value As ShapeRange
value = instance.ShapeRange
ShapeRange ShapeRange { get; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.ShapeRange
ShapeRange
Remarks
The range returned can contain the drawings, shapes, OLE objects, pictures, text objects, titles, headers, footers, slide number placeholder, and date and time objects on a slide.
You can return a shape range from a selection when the presentation is in normal, slide, or any master view.
Examples
This example sets the fill foreground color for all the selected shapes in window one.
Windows(1).Selection.ShapeRange.Fill _
.ForeColor.RGB = RGB(255, 0, 255)