Propiedad ThreeDFormat.RotationY (PowerPoint)

Devuelve o establece el giro de la forma extruida alrededor deleje Y, en grados. Lectura y escritura.

Sintaxis

expresión. RotationY

Expresión Variable que representa un objeto ThreeDFormat .

Valor devuelto

Simple

Comentarios

Puede ser un valor comprendido -90 y 90. Un valor positivo indica un giro a la izquierda; un valor negativo indica giro hacia la derecha.

Para establecer el giro de la forma extruida alrededor del eje x, utilice la propiedad RotationX 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 óvalos extruidos idénticos a myDocument y se establece su rotación alrededor del eje Y en - 30, 0 y 30 grados, respectivamente.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes

    With .AddShape(msoShapeOval, 30, 30, 50, 25).ThreeD

        .Visible = True

        .RotationY = -30

    End With

    With .AddShape(msoShapeOval, 30, 70, 50, 25).ThreeD

        .Visible = True

        .RotationY = 0

    End With

    With .AddShape(msoShapeOval, 30, 110, 50, 25).ThreeD

        .Visible = True

        .RotationY = 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.