DrawingGuides
ICommonSlideViewProperties.DrawingGuides property
Returns the collection of the drawing guides. Read-only IDrawingGuidesCollection
public IDrawingGuidesCollection DrawingGuides { get; }
Examples
The following sample code shows how to add the new drawing guides in a PowerPoint presentation.
[C#]
using (Presentation pres = new Presentation())
{
var slideSize = pres.SlideSize.Size;
IDrawingGuidesCollection guides = pres.ViewProperties.SlideViewProperties.DrawingGuides;
// Adding the new vertical drawing guide to the right of the slide center
guides.Add(Orientation.Vertical, slideSize.Width / 2 + 12.5f);
// Adding the new horizontal drawing guide below the slide center
guides.Add(Orientation.Horizontal, slideSize.Height / 2 + 12.5f);
pres.Save("DrawingGuides_out.pptx", SaveFormat.Pptx);
}
See Also
- interface IDrawingGuidesCollection
- interface ICommonSlideViewProperties
- namespace Aspose.Slides
- assembly Aspose.Slides