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

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



expression:一个表示 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 对象Hyperlinks Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.