get_DrawingGuides()
ILayoutSlide::get_DrawingGuides() method
Returns a collection of drawing guides for the layout slide. Read-only IDrawingGuidesCollection
virtual System::SharedPtr<IDrawingGuidesCollection> Aspose::Slides::ILayoutSlide::get_DrawingGuides()=0
Remarks
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
System::Drawing::SizeF slideSize = pres->get_SlideSize()->get_Size();
System::SharedPtr<IDrawingGuidesCollection> guides = pres->get_LayoutSlide(0)->get_DrawingGuides();
// Adding the new vertical drawing guide to the left of the slide center
guides->Add(Orientation::Vertical, slideSize.get_Width() / 2 - 20.0f);
pres->Save(u"LayoutDrawingGuides_out.pptx", SaveFormat::Pptx);
See Also
- Typedef SharedPtr
- Class IDrawingGuidesCollection
- Class ILayoutSlide
- Namespace Aspose::Slides
- Library Aspose.Slides