添加图像

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 刚刚发布