Propiedad ThreeDFormat.RotationX (Word)

Devuelve o establece el giro de la forma extruida alrededor del eje x en grados. Lectura y escritura único.

Sintaxis

expresión. RotationX

Expresión Expresión que devuelve un objeto "ThreeDFormat".

Comentarios

La propiedad RotationX puede ser un valor entre - 90 y 90. Un valor positivo indica un giro hacia arriba; un valor negativo indica un giro hacia abajo.

Para establecer el giro de la forma extruida alrededor del eje y, utilice la propiedad RotationY del objeto ThreeDFormat. Para establecer el giro de la forma extruida alrededor del eje z, utilice la propiedad Rotation del objeto Shape. Para cambiar la dirección del barrido de extrusión sin girar la cara frontal de la extrusión, utilice el método SetExtrusionDirection.

Ejemplo:

En este ejemplo, se agregan tres elipses extruidas idénticas al documento activo y se establece el giro alrededor del eje X - 30, 0 y 30 grados, respectivamente.

With ActiveDocument.Shapes 
 With .AddShape(msoShapeOval, 30, 60, 50, 25).ThreeD 
 .Visible = True 
 .RotationX = -30 
 End With 
 With .AddShape(msoShapeOval, 90, 60, 50, 25).ThreeD 
 .Visible = True 
 .RotationX = 0 
 End With 
 With .AddShape(msoShapeOval, 150, 60, 50, 25).ThreeD 
 .Visible = True 
 .RotationX = 30 
 End With 
End With

Consulte también

Objeto ThreeDFormat

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.