Share via


Shape.Flip Method

Flips the specified shape around its horizontal or vertical axis.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Sub Flip ( _
    FlipCmd As MsoFlipCmd _
)
'Usage
Dim instance As Shape
Dim FlipCmd As MsoFlipCmd

instance.Flip(FlipCmd)
void Flip(
    MsoFlipCmd FlipCmd
)

Parameters

Remarks

The FlipCmd parameter value can be one of these MsoFlipCmd constants.

msoFlipHorizontal

msoFlipVertical

Examples

This example adds a triangle to myDocument, duplicates the triangle, and then flips the duplicate triangle vertically and makes it red.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes _

        .AddShape(msoShapeRightTriangle, 10, 10, 50, 50).Duplicate

    .Fill.ForeColor.RGB = RGB(255, 0, 0)

    .FlipmsoFlipVertical

End With

See Also

Reference

Shape Interface

Shape Members

Microsoft.Office.Interop.PowerPoint Namespace