officefileapi-devexpress-dot-docs-dot-presentation-dot-viewproperties-c676f774.md
Gets or sets the spacing of the alignment grid used in the presentation layout.
Namespace : DevExpress.Docs.Presentation
Assembly : DevExpress.Docs.Presentation.v25.2.dll
NuGet Package : DevExpress.Docs.Presentation
public float GridSpacing { get; set; }
Public Property GridSpacing As Single
| Type | Description |
|---|---|
| Single |
The grid spacing, in points.
|
The following code sample sets the GridSpacing property value to 500:
using (Presentation presentation = new Presentation("document.pptx")) {
presentation.ViewProperties.GridSpacing = 500;
}
Using presentation As New Presentation("document.pptx")
presentation.ViewProperties.GridSpacing = 500
End Using
The following code sample sets the GridSpacing property value to 50:
using (Presentation presentation = new Presentation("document.pptx")) {
presentation.ViewProperties.GridSpacing = 500;
}
Using presentation As New Presentation("document.pptx")
presentation.ViewProperties.GridSpacing = 500
End Using
See Also