返回一个
ThreeDFormat
对象,它包含指定形状的三维效果格式属性。只读。
语法
表达式.ThreeD
表达式 一个代表 Shape 对象的变量。
示例
本例设置应用于 myDocument
中第一个形状的三维效果:深度、延伸色、延伸方向以及照明方向。
示例代码 |
let myDocument = Worksheets.Item(1)
let threeD = myDocument.Shapes.Item(1).ThreeD
threeD.Visible = true
threeD.Depth = 50
threeD.ExtrusionColor.RGB = 255, 100, 255
// RGB value for purple
threeD.SetExtrusionDirection(msoExtrusionTop)
threeD.PresetLightingDirection = msoLightingLeft
|