Back to Devexpress

CommonSlideViewProperties.DrawingGuides Property

officefileapi-devexpress-dot-docs-dot-presentation-dot-commonslideviewproperties.md

latest2.9 KB
Original Source

CommonSlideViewProperties.DrawingGuides Property

Gets the drawing guide collection.

Namespace : DevExpress.Docs.Presentation

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

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public DrawingGuideCollection DrawingGuides { get; }
vb
Public ReadOnly Property DrawingGuides As DrawingGuideCollection

Property Value

TypeDescription
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:

csharp
using (Presentation presentation = new Presentation("document.pptx")) {
    DrawingGuide guide1 = new DrawingGuide(Direction.Horizontal, 500);
    presentation.ViewProperties.SlideViewProperties.DrawingGuides.Add(guide1);
}
vb
Using presentation As New Presentation("document.pptx")
    Dim guide1 As New DrawingGuide(Direction.Horizontal, 500)
    presentation.ViewProperties.SlideViewProperties.DrawingGuides.Add(guide1)
End Using

Display a Vertical Drawing Guide

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

csharp
using (Presentation presentation = new Presentation("document.pptx")) {
    DrawingGuide guide1 = new DrawingGuide(Direction.Vertical, 150);
    presentation.ViewProperties.SlideViewProperties.DrawingGuides.Add(guide1);
}
vb
Using presentation As New Presentation("document.pptx")
    Dim guide1 As New DrawingGuide(Direction.Vertical, 150)
    presentation.ViewProperties.SlideViewProperties.DrawingGuides.Add(guide1)
End Using

See Also

CommonSlideViewProperties Class

CommonSlideViewProperties Members

DevExpress.Docs.Presentation Namespace