主题
SetPresetCamera (方法)
为指定的 ThreeDFormat 对象设置相机。
参数
属性 | 数据类型 | 必填 | 说明 |
---|---|---|---|
PresetCamera | MsoPresetCamera | 必填 | 指定预设相机。 |
示例
python
#本示例将第一张工作表中的第一个形状ThreeDFormat对象的预设相机类型设置成等长底部朝下
def test():
worksheet = Worksheets.Item(1)
threeDFormat = worksheet.Shapes.Item(1).ThreeD
threeDFormat.SetPresetCamera(msoCameraIsometricBottomDown)
python
#本示例将活动工作表中第三个形状ThreeDFormat对象的预设相机类型设置成等轴左上
def test():
shape = ActiveSheet.Shapes.Item(3)
shape.ThreeD.Visible = msoTrue
shape.ThreeD.SetPresetCamera(msoCameraIsometricLeftUp)