ThreeDFormat.PresetExtrusionDirection property (Publisher)
Returns an MsoPresetExtrusionDirection constant that represents the direction taken by the extrusion's sweep path leading away from the extruded shape (the front face of the extrusion). Read-only.
Syntax
expression.PresetExtrusionDirection
expression A variable that represents a ThreeDFormat object.
Return value
MsoPresetExtrusionDirection
Remarks
The PresetExtrusionDirection property value can be one of the MsoPresetExtrusionDirection constants declared in the Microsoft Office type library.
This property is read-only. To set the value of this property, use the SetExtrusionDirection method.
Example
This example changes the extrusion for the first shape on the first page of the active publication if the extrusion extends toward the upper-left corner of the extrusion's front face. For this example to work, the specified shape must be a 3D shape.
Sub SetExtrusion()
With ActiveDocument.Pages(1).Shapes(1).ThreeD
If .PresetExtrusionDirection = msoExtrusionTopLeft Then
.SetExtrusionDirection msoExtrusionBottomRight
End If
End With
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.