Skip to main content
All docs
V25.1
  • 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.1.dll

    NuGet Package: DevExpress.Docs.Presentation

    Declaration

    public float GridSpacing { get; set; }

    Property Value

    Type Description
    Single

    The grid spacing, in points.

    Remarks

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

    DevExpress Presentation - View Properties - Grid Spacing

    using (Presentation presentation = new Presentation("document.pptx")) {
        presentation.ViewProperties.GridSpacing = 500;
    }
    

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

    DevExpress Presentation - View Properties - Grid Spacing

    using (Presentation presentation = new Presentation("document.pptx")) {
        presentation.ViewProperties.GridSpacing = 500;
    }
    
    See Also