get_GridSpacing()

IViewProperties::get_GridSpacing() method

Returns the grid spacing that should be used for the grid underlying the presentation document, in points. Read float.

virtual float Aspose::Slides::IViewProperties::get_GridSpacing()=0

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