Slide.Shapes Property
PowerPoint Developer Reference |
Returns a Shapes collection that represents all the elements that have been placed or inserted on the specified slide, slide master, or range of slides. Read-only.
Syntax
expression.Shapes
expression A variable that represents a Slide object.
Return Value
Shapes
Remarks
The Shapes collection returned can contain the drawings, shapes, OLE objects, pictures, text objects, titles, headers, footers, slide numbers, and date and time objects on a slide, or on the slide image on a notes page.
Example
This example adds a rectangle that's 100 points wide and 50 points high, and whose upper-left corner is 5 points from the left edge of slide one in the active presentation and 25 points from the top of the slide.
Visual Basic for Applications |
---|
|
This example sets the fill texture for shape three on slide one in the active presentation.
Visual Basic for Applications |
---|
|
Assuming that slide one in the active presentation contains a title, both the second and third lines of code in the following example set the title text on slide one in the presentation.
Visual Basic for Applications |
---|
|
Assuming that shape two on slide two in the active presentation contains a text frame, the following example adds a series of paragraphs to the slide. Note that Chr(13)
is used to insert paragraph marks within the text.
Visual Basic for Applications |
---|
|
For most slide layouts, the first shapes on the slide are text placeholders, and the following example accomplishes the same task as the preceding example.
Visual Basic for Applications |
---|
|
See Also