How to add slide like Python pptx with default slideout?

qiangang 45 Reputation points
2023-03-13T07:15:35.02+00:00

I am building my own ppt C# library, I found that python pptx new slide only needs to pass in the slideout parameter, how can I write my code like this?

python code as this:

prs = Presentation()
slide_layout = prs.slide_layouts[6]
slide = prs.slides.add_slide(slide_layout)
Microsoft 365 and Office Development Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.