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

ThreeDFormat.SetExtrusionDirection 方法 (发布服务器)ThreeDFormat.SetExtrusionDirection Method (Publisher)

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

设置延伸部分经过的路径偏离延伸形状的方向。Sets the direction that the extrusion's sweep path takes away from the extruded shape.

语法Syntax

表达式SetExtrusionDirection( PresetExtrusionDirection)expression. SetExtrusionDirection( PresetExtrusionDirection)

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

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
PresetExtrusionDirectionPresetExtrusionDirection必需RequiredMsoPresetExtrusionDirectionMsoPresetExtrusionDirection指定延伸方向。Specifies the extrusion direction.

注解Remarks

PresetExtrusionDirection 参数可以是在 Microsoft Office 类型库中声明,如下表所示的MsoPresetExtrusionDirection常量之一。The PresetExtrusionDirection parameter can be one of the MsoPresetExtrusionDirection constants declared in the Microsoft Office type library and shown in the following table.

| msoExtrusionBottom| |msoExtrusionBottomLeft| |msoExtrusionBottomRight| |msoExtrusionLeft| |msoExtrusionNone| |msoExtrusionRight| |msoExtrusionTop| |msoExtrusionTopLeft| |msoExtrusionTopRight|此方法将PresetExtrusionDirection属性设置为 PresetExtrusionDirection 参数指定的方向。| msoExtrusionBottom| | msoExtrusionBottomLeft| | msoExtrusionBottomRight| | msoExtrusionLeft| | msoExtrusionNone| | msoExtrusionRight| | msoExtrusionTop| | msoExtrusionTopLeft| | msoExtrusionTopRight| This method sets the PresetExtrusionDirectionproperty to the direction specified by the PresetExtrusionDirection argument.

示例Example

本示例指定当前出版物中第一个形状的视角延伸到形状的顶部,并且视角的光线来自左边。This example specifies that the extrusion for the first shape in the active publication extend toward the top of the shape and that the lighting for the extrusion come from the left.

With ActiveDocument.Pages(1).Shapes(1).ThreeD 
 .Visible = True 
 .SetExtrusionDirection _ 
 PresetExtrusionDirection:=msoExtrusionTop 
 .PresetLightingDirection = msoLightingLeft 
End With 
© 2018 Microsoft