Placeholders.Parent Property
Returns the parent object for the specified object.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property Parent As Object
Get
'Usage
Dim instance As Placeholders
Dim value As Object
value = instance.Parent
Object Parent { get; }
Property Value
Type: System.Object
Object
Examples
This example adds an oval containing text to slide one in the active presentation and rotates the oval and the text 45 degrees. The parent object for the text frame is the Shape object that contains the text.
Set myShapes = ActivePresentation.Slides(1).Shapes
With myShapes.AddShape(Type:=msoShapeOval, Left:=50, _
Top:=50, Width:=300, Height:=150).TextFrame
.TextRange.Text = "Test text"
.Parent.Rotation = 45
End With