ThreeDFormat.SetThreeDFormat 方法 (Excel)

返回预设的延伸格式。 每个预设的延伸格式都包含一组各种延伸属性的预设值。

语法

表达式SetThreeDFormat (PresetThreeDFormat)

表达 一个代表 ThreeDFormat 对象的变量。

参数

名称 必需/可选 数据类型 说明
PresetThreeDFormat 必需 MsoPresetThreeDFormat 指定预设延伸格式,该格式对应于从左到右、从上到下编号 (选项之一,) 选择绘图工具栏上的 3D 按钮时显示。

备注

此方法将 PresetThreeDFormat 属性设置为 PresetThreeDFormat 参数指定的格式。

示例

本示例向 myDocument 中添加椭圆并将其延伸格式设置为 3D 样式 12。

Set myDocument = Worksheets(1) 
With myDocument.Shapes.AddShape(msoShapeOval, _ 
        30, 30, 50, 25).ThreeD 
    .Visible = True 
    .SetThreeDFormat msoThreeD12 
End With

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。