Skip to main content
All docs
V25.1
  • CommonSlideViewProperties.DrawingGuides Property

    Gets the drawing guide collection.

    Namespace: DevExpress.Docs.Presentation

    Assembly: DevExpress.Docs.Presentation.v25.1.dll

    NuGet Package: DevExpress.Docs.Presentation

    Declaration

    public DrawingGuideCollection DrawingGuides { get; }

    Property Value

    Type Description
    DrawingGuideCollection

    The collection of drawing guides.

    Remarks

    Display a Horizontal Drawing Guide

    The following code snippet creates a horizontal drawing guide and adds it to the DrawingGuides collection:

    DevExpress Presentation Views - Drawing Guides

    using (Presentation presentation = new Presentation("document.pptx")) {
        DrawingGuide guide1 = new DrawingGuide(Direction.Horizontal, 500);
        presentation.ViewProperties.SlideViewProperties.DrawingGuides.Add(guide1);
    }
    

    Display a Vertical Drawing Guide

    The following code snippet creates a vertical drawing guide and adds it to the DrawingGuides collection:

    DevExpress Presentation Views - Drawing Guides

    using (Presentation presentation = new Presentation("document.pptx")) {
        DrawingGuide guide1 = new DrawingGuide(Direction.Vertical, 150);
        presentation.ViewProperties.SlideViewProperties.DrawingGuides.Add(guide1);
    }
    
    See Also