set_GridSpacing()
ViewProperties::set_GridSpacing(float) method
Sets the grid spacing that should be used for the grid underlying the presentation document, in points. Write float.
void Aspose::Slides::ViewProperties::set_GridSpacing(float value) override
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).
The following sample code shows how to change the grid spacing in a PowerPoint presentation.
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
pres->get_ViewProperties()->set_GridSpacing(72.0f);
pres->Save(u"GridSpacing_out.pptx", SaveFormat::Pptx);
See Also
- Class ViewProperties
- Namespace Aspose::Slides
- Library Aspose.Slides