Back to Devexpress

DrawingGuide(Direction, Single) Constructor

officefileapi-devexpress-dot-docs-dot-presentation-dot-drawingguide-dot-ctor-x28-devexpress-dot-docs-dot-presentation-dot-direction-system-dot-single-x29.md

latest2.4 KB
Original Source

DrawingGuide(Direction, Single) Constructor

Initializes a new instance of the DrawingGuide class with specified settings.

Namespace : DevExpress.Docs.Presentation

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

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public DrawingGuide(
    Direction orientation,
    float position
)
vb
Public Sub New(
    orientation As Direction,
    position As Single
)

Parameters

NameTypeDescription
orientationDirection

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:

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

See Also

DrawingGuide Struct

DrawingGuide Members

DevExpress.Docs.Presentation Namespace