officefileapi-devexpress-dot-docs-dot-presentation-9bf6a0f2.md
An adjustable drawing guide.
Namespace : DevExpress.Docs.Presentation
Assembly : DevExpress.Docs.Presentation.v25.2.dll
NuGet Package : DevExpress.Docs.Presentation
public readonly struct DrawingGuide
Public Structure DrawingGuide
Create a DrawingGuide instance with its constructor to specify its properties.
The following code snippet creates a horizontal drawing guide and adds it to the DrawingGuides collection:
using (Presentation presentation = new Presentation("document.pptx")) {
DrawingGuide guide1 = new DrawingGuide(Direction.Horizontal, 500);
presentation.ViewProperties.SlideViewProperties.DrawingGuides.Add(guide1);
}
Using presentation As New Presentation("document.pptx")
Dim guide1 As New DrawingGuide(Direction.Horizontal, 500)
presentation.ViewProperties.SlideViewProperties.DrawingGuides.Add(guide1)
End Using
See Also