GridSpacing
ViewProperties.GridSpacing property
Returns or sets the grid spacing that should be used for the grid underlying the presentation document, in points. Read/write Single.
public float GridSpacing { get; set; }
Remarks
The grid spacing value must be a positive number . The typical value range is from 1 mm (2.8349607 points) to 2 inches (144 points).
Examples
The following sample code shows how to change the grid spacing in a PowerPoint presentation.
[C#]
using (Presentation pres = new Presentation())
{
pres.ViewProperties.GridSpacing = 72f;
pres.Save("GridSpacing_out.pptx", SaveFormat.Pptx);
}
See Also
- class ViewProperties
- namespace Aspose.Slides
- assembly Aspose.Slides