Table of contents
TOC
折叠目录
展开目录

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

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

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

语法Syntax

表达式父级expression. Parent

表达式_一个表示超链接对象的变量。_expression A variable that represents a Hyperlinks object.

返回值Return Value

对象Object

示例Example

本示例添加一个包含到当前演示文稿第一张幻灯片的文本的椭圆并将该椭圆及文本旋转 45 度。该文本框架的父对象是包含文本的形状对象。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

概念Concepts

Hyperlinks 对象Hyperlinks Object

© 2018 Microsoft