Created
November 29, 2024 05:23
-
-
Save fileformat-slides-gists/3e25c3cd4ba8bc6094137e0bbe658ed2 to your computer and use it in GitHub Desktop.
Draw a Pentagon in PowerPoint Slides using C# | FileFormat.Slides
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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