Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fileformat-slides-gists/3e25c3cd4ba8bc6094137e0bbe658ed2 to your computer and use it in GitHub Desktop.
Save fileformat-slides-gists/3e25c3cd4ba8bc6094137e0bbe658ed2 to your computer and use it in GitHub Desktop.
Draw a Pentagon in PowerPoint Slides using C# | FileFormat.Slides
Presentation presentation = Presentation.Open($"{documentDirectory}/{filename}");
// Create an instance of Arrow
Arrow Arrow = new Arrow();
// Set height and widt
Arrow.Height = 400.0;
// Set Y position
Arrow.Y = 100.0;
// First slide
Slide slide = presentation.GetSlides()[1];
// Add Arrow shapes.
slide.DrawArrow(Arrow);
// Save the PPT or PPTX
presentation.Save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment