DrawingGuide(Direction, Single) Constructor
Initializes a new instance of the DrawingGuide class with specified settings.
Namespace: DevExpress.Docs.Presentation
Assembly: DevExpress.Docs.Presentation.v25.1.dll
NuGet Package: DevExpress.Docs.Presentation
Declaration
Parameters
Name | Type | Description |
---|---|---|
orientation | Direction | The drawing guide orientation. |
position | Single | The drawing guide position from the top-left corner of the slide, in points. |
Remarks
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);
}
See Also