expression。 SnapToGrid表达 一个代表 Options 对象的变量。备注绘制或移动自选图形或者调整其大小时,按下 Alt 可以暂时使该设置无效。示例以下示例设置 Word,使新文档的自选图形自动与不可见的网格对齐。VB 复制 Options.SnapToGrid = True Documents.Add ...
expression。SnapToGrid 表達代表Options物件的變數。 註解 當您在繪製、移動或調整快取圖案的大小時,可以按下 ALT 來暫時覆寫這項設定。 範例 本範例會設定 Word,讓新文件中的快取圖案自動對齊隱藏格線。 VB Options.SnapToGrid =TrueDocuments.Add
ActiveDocument.SnapToGrid = True 本示例设置 Word,使新文档的自选图形自动与不可见的网格线对齐。 Options.SnapToGrid = True Documents.Add 本示例返回“对齐网格”对话框中的“对象与网格对齐”选项的状态(“绘图”工具栏上的“绘图”菜单中的“对齐网格”命令)。
Namespace: Microsoft.Office.Interop.Word Assembly: Microsoft.Office.Interop.Word.dll C# 複製 public virtual bool SnapToGrid { get; set; } Property Value Boolean Implements SnapToGrid Applies to 產品版本 Word primary interop assembly Latest ...
OpenXml.Wordprocessing 程序集: DocumentFormat.OpenXml.dll 包: DocumentFormat.OpenXml v3.0.1 定义SnapToGrid 类。 此类在 Office 2007 及更高版本中可用。 当对象序列化为 xml 时,其限定名称为 w:snapToGrid。 C# 复制 public class SnapToGrid : DocumentFormat.OpenXml.Wordprocessing.OnOffType 继承...
Applies To Word for Microsoft 365Word 2024Word 2021Word 2019Word 2016 Make pictures, charts, or other objects align on the page, or with each other, by using “snap to” commands. Snap tooptions only work in Print Layout. Turn on the snap-to options ...
Turn on the snap-to options Click the shape or other object, and then on theShape Formattab, underArrange, clickAlign. Do one or both of the following: To snap shapes or other objects to the closest intersection of the grid, clickSnap to Grid....
This example sets Word so that AutoShapes are automatically aligned with the invisible grid in a new document.VB Kopiraj Options.SnapToGrid = True Documents.Add This example returns the status of the Snap to grid option in the Snap to Grid dialog box....
This example sets Word so that AutoShapes are automatically aligned with the invisible grid in a new document.vb Kopiëren Options.SnapToGrid = True Documents.Add This example returns the status of the Snap to grid option in the Snap to Grid dialog box....
This example sets Word so that AutoShapes are automatically aligned with the invisible grid in a new document.VB Kopeeri Options.SnapToGrid = True Documents.Add This example returns the status of the Snap to grid option in the Snap to Grid dialog box....