Shapes.Parent Property
Publisher Developer Reference |
Returns an object that represents the parent object of the specified object. For example, for a TextFrame object, returns a Shape object representing the parent shape of the text frame. Read-only.
Syntax
expression.Parent
expression A variable that represents a Shapes object.
Example
This example accesses the parent object of the selected shape, and then adds a new shape to it and sets the fill for the new shape.
Visual Basic for Applications |
---|
|
This example returns the parent object of a text frame, which is the first shape in the active publication, and then fills the shape with a pattern.
Visual Basic for Applications |
---|
|
See Also