_Document.SnapToGrid 属性

定义

确定在指定的文档中绘制、移动或调整大小时,自选图形或东亚语言字符是否自动与不可见的网格线对齐。Determines if AutoShapes or East Asian characters are automatically aligned with an invisible grid when they are drawn, moved, or resized in the specified document.

public:
 property bool SnapToGrid { bool get(); void set(bool value); };
public bool SnapToGrid { get; set; }
member this.SnapToGrid : bool with get, set
Public Property SnapToGrid As Boolean

属性值

Boolean

注解

如果自选图形或东亚语言字符在指定文档中绘制、移动或调整大小时自动与不可见的网格线对齐,则此属性返回True ; 如果不是,则返回FalseThis property returns True if AutoShapes or East Asian characters are automatically aligned with an invisible grid when they are drawn, moved, or resized in the specified document, and False if not. 将属性值设置为TrueFalse可启用或禁用功能。Set the property value to True or False to enable or disable the functionality.

绘制或移动自选图形或者调整其大小时,按下 Alt 可以暂时使该设置无效。You can temporarily override this setting by pressing ALT while drawing, moving, or resizing an AutoShape.

适用于