HorizontalFlip 属性 (PowerPoint)ShapeRange.HorizontalFlip property (PowerPoint)

返回指定的形状是否绕水平轴翻转。Returns whether the specified shape is flipped around the horizontal axis. 此为只读属性。Read-only.


expressionexpression. HorizontalFlip

_表达式_一个代表**ShapeRange** 对象的变量。expression A variable that represents a ShapeRange object.

返回值Return value



HorizontalFlip属性的值可以是下列MsoTriState常量之一。The value of the HorizontalFlip property can be one of these MsoTriState constants.

常量Constant 说明Description
msoFalsemsoFalse 指定的形状不绕水平轴翻转。The specified shape is not flipped around the horizontal axis.
msoTruemsoTrue 指定的形状绕水平轴翻转。The specified shape is flipped around the horizontal axis.


本示例将_myDocument_中的每个形状还原到其原始状态 (如果该形状已水平翻转或垂直翻转)。This example restores each shape on myDocument to its original state, if it is been flipped horizontally or vertically.

Set myDocument = ActivePresentation.Slides(1)

For Each s In myDocument.Shapes

    If s.HorizontalFlip Then s.Flip msoFlipHorizontal

    If s.VerticalFlip Then s.Flip msoFlipVertical


另请参阅See also

绘图对象ShapeRange Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.