GridSpacing

ViewProperties.GridSpacing 属性

返回或设置演示文档中用于基础网格的网格间距,单位为点。可读写单精度浮点数。

public float GridSpacing { get; set; }

备注

网格间距值必须是正数。典型值范围为 1 毫米(2.8349607 点)到 2 英寸(144 点)。

示例

以下示例代码展示了如何在 PowerPoint 演示文稿中更改网格间距。

[C#]
using (Presentation pres = new Presentation())
{
    pres.ViewProperties.GridSpacing = 72f;
    pres.Save("GridSpacing_out.pptx", SaveFormat.Pptx);
}

另见