DrawingGuides

ILayoutSlide.DrawingGuides property

Returns a collection of drawing guides for the layout slide. Read-only IDrawingGuidesCollection

public IDrawingGuidesCollection DrawingGuides { get; }

Examples

[C#]
using (Presentation pres = new Presentation())
{
    var slideSize = pres.SlideSize.Size;
    
    IDrawingGuidesCollection guides = pres.LayoutSlides[0].DrawingGuides;
    // Adding the new vertical drawing guide to the left of the slide center
    guides.Add(Orientation.Vertical, slideSize.Width / 2 - 20f);
    
    pres.Save("LayoutDrawingGuides_out.pptx", SaveFormat.Pptx);
}

See Also