Back to Devexpress

ViewProperties.GridSpacing Property

officefileapi-devexpress-dot-docs-dot-presentation-dot-viewproperties-c676f774.md

latest2.2 KB
Original Source

ViewProperties.GridSpacing Property

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

Declaration

csharp
public float GridSpacing { get; set; }
vb
Public Property GridSpacing As Single

Property Value

TypeDescription
Single

The grid spacing, in points.

|

Remarks

The following code sample sets the GridSpacing property value to 500:

csharp
using (Presentation presentation = new Presentation("document.pptx")) {
    presentation.ViewProperties.GridSpacing = 500;
}
vb
Using presentation As New Presentation("document.pptx")
    presentation.ViewProperties.GridSpacing = 500
End Using

The following code sample sets the GridSpacing property value to 50:

csharp
using (Presentation presentation = new Presentation("document.pptx")) {
    presentation.ViewProperties.GridSpacing = 500;
}
vb
Using presentation As New Presentation("document.pptx")
    presentation.ViewProperties.GridSpacing = 500
End Using

See Also

ViewProperties Class

ViewProperties Members

DevExpress.Docs.Presentation Namespace