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

ThreeDFormat.PresetMaterial 属性 (发布服务器)ThreeDFormat.PresetMaterial Property (Publisher)

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

返回或设置一个可读常量,该常量表示延伸表面的材料。读/写。Returns or sets an MsoPresetMaterial constant that represents the extrusion surface material. Read/write.

语法Syntax

表达式PresetMaterialexpression. PresetMaterial

_expression_A 表示ThreeDFormat对象的变量。_expression_A variable that represents a ThreeDFormat object.

返回值Return Value

可读MsoPresetMaterial

注解Remarks

PresetMaterial属性值可以是一种 * * 在 Microsoft Office 类型库中声明常量。The PresetMaterial property value can be one of the ** MsoPresetMaterial** constants declared in the Microsoft Office type library.

示例Example

本示例指定当前出版物中第一页上第一个形状的延伸部分的表面为线框。为了使本示例能正常运行,指定形状必须是三维形状。This example specifies that the extrusion surface for shape one in the active publication be a wireframe. For this example to work, the specified shape must be a 3-D shape.

Sub SetExtrusionMaterial() 
 With ActiveDocument.Pages(1).Shapes(1).ThreeD 
 .Visible = True 
 .PresetMaterial = msoMaterialWireFrame 
 End With 
End Sub
© 2018 Microsoft