应用于 ThreeDFormat 对象的 Depth 属性。
对于 ThreeDFormat 对象,返回或设置图形的延伸深度。可为 -600 到 9600 之间的值(正值表示延伸的前面就是原有形状,负值表示延伸的后面是原有形状)。Single 类型,可读写。
expression.Depth
expression 必需。该表达式返回一个 ThreeDFormat 对象。
应用于 TickLabels 对象的 TickLabels 属性。
本示例向 myDocument
中添加椭圆,然后指定椭圆的延伸为 50 磅,并指定延伸的颜色为紫色。
Set myDocument = Worksheets(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