Hyperlinks.Parent 属性 (PowerPoint)Hyperlinks.Parent Property (PowerPoint)

返回指定对象的父对象。Returns the parent object for the specified object.


expressionexpression. Parent

_表达式_一个代表Hyperlinks对象的变量。expression A variable that represents a Hyperlinks object.

返回值Return value



本示例添加一个包含到当前演示文稿第一张幻灯片的文本的椭圆并将该椭圆及文本旋转 45 度。This example adds an oval containing text to slide one in the active presentation and rotates the oval and the text 45 degrees. 文本框架的父对象是包含文本的Shape对象。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

超链接对象Hyperlinks Object