PowerPoint) (Presentation.SnapToGrid 屬性
會決定在所指定簡報中,是否要將圖案貼齊格線。 讀取/寫入。
語法
expression。 SnapToGrid
表達 代表 Presentation 物件的變數。
傳回值
MsoTriState
註解
SnapToGrid 屬性的值可以是下列其中一個 MsoTriState 常數。
msoFalse |
msoTrue |
範例
本範例會切換圖案與作用中簡報格線的貼齊。
Sub ToggleSnapToGrid()
With ActivePresentation
If .SnapToGrid = msoTrue Then
.SnapToGrid = msoFalse
Else
.SnapToGrid = msoTrue
End If
End With
End Sub
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。