Skip to content

Latest commit

 

History

History
54 lines (31 loc) · 1.11 KB

File metadata and controls

54 lines (31 loc) · 1.11 KB
title DocumentWindow.Parent property (PowerPoint)
keywords vbapp10.chm511002
f1_keywords
vbapp10.chm511002
api_name
PowerPoint.DocumentWindow.Parent
ms.assetid 275ed305-76f9-8dca-afb9-db206f6b128b
ms.date 06/08/2017
ms.localizationpriority medium

DocumentWindow.Parent property (PowerPoint)

Returns the parent object for the specified object.

Syntax

expression.Parent

expression A variable that represents a DocumentWindow object.

Return value

Object

Example

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

See also

DocumentWindow Object

[!includeSupport and feedback]