新增圖片

The code snippet below demonstrates how to load a Word document, configure an image with specific dimensions, and then add this image into the document. A new Paragraph object is created to contain the image, which is added using the AddImage method of the paragraph. This paragraph, now containing the image, is subsequently added to the document using AddParagraph. Finally, the modified document is exported.

Explore Document Elements Tutorial for More Insights.

準備好開始了嗎?
Nuget 下載 25,807 | 版本: 2025.11 剛剛發布