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

ThreeDFormat.Depth 属性 (PowerPoint)ThreeDFormat.Depth Property (PowerPoint)

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

返回或设置形状的延伸深度。可读/写。Returns or sets the depth of the shape's extrusion. Read/write.

语法Syntax

表达式深度expression. Depth

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

返回值Return Value

SingleSingle

注解Remarks

深度属性值可以是从-600 到 9600 (正值产生的延伸正面为原始形状; 负值产生的延伸,其背面是原始形状)。The Depth property value can be from - 600 through 9600 (positive values produce an extrusion whose front face is the original shape; negative values produce an extrusion whose back face is the original shape).

示例Example

本示例将一个椭圆添至myDocument,,然后指定该椭圆延伸 50 磅,并延伸部分设为紫色。This example adds an oval to myDocument, and then specifies that the oval be extruded to a depth of 50 points and that the extrusion be purple.

Set myDocument = ActivePresentation.Slides(1)

Set myShape = myDocument.Shapes _
    .AddShape(msoShapeOval, 90, 90, 90, 40)

With myShape.ThreeD
    .Visible = True
    .Depth = 50
    'RGB value for purple
    .ExtrusionColor.RGB = RGB(255, 100, 255) 
End With

另请参阅See also

概念Concepts

刻度线标签对象ThreeDFormat 对象TickLabels ObjectThreeDFormat Object

© 2018 Microsoft