From eb877c92414636a6f2376f64e2b8986db08e8839 Mon Sep 17 00:00:00 2001 From: JIAMing12 <2237013359@qq.com> Date: Tue, 15 Jul 2025 08:57:49 +0000 Subject: [PATCH] =?UTF-8?q?update=20README.zh-CN.md.=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E6=A0=87=E7=AD=BE=E6=8F=92=E5=85=A5=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E5=9B=BE=E7=89=87=E7=94=A8=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: JIAMing12 <2237013359@qq.com> --- README.zh-CN.md | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/README.zh-CN.md b/README.zh-CN.md index 5d0e1a2..7ef4c78 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,8 +1,7 @@
-

NuGet -GitHub stars +

NuGet +GitHub stars version -Ask DeepWiki

@@ -114,7 +113,6 @@ MiniWord.SaveAsByTemplate(path, templatePath, value); ``` - ##### 模版 ![image](https://user-images.githubusercontent.com/12729184/190647953-6f9da393-e666-4658-a56d-b3a7f13c0ea1.png) @@ -123,6 +121,32 @@ MiniWord.SaveAsByTemplate(path, templatePath, value); ![image](https://user-images.githubusercontent.com/12729184/190648179-30258d82-723d-4266-b711-43f132d1842d.png) +### 一个标签对应多个图片 + +##### 代码例子 + +```csharp +var replacements = new System.Collections.Generic.Dictionary +{ + { "image",new List + { + new MiniWordPicture + { + Path = path1, + Width = 80, + Height = 60 + }, + new MiniWordPicture + { + Path = path2, + Width = 100, + Height = 80 + } + } + } +}; +MiniSoftware.MiniWord.SaveAsByTemplate(saveDocumnet, templateDocument, replacements); +``` ### 列表 标签值为 `string[]` 或是 `IList`类别 @@ -281,7 +305,7 @@ MiniWord.SaveAsByTemplate(path, templatePath, value); ##### Example ```csharp -var value = new +var value = new { LoopData = new List() { @@ -370,7 +394,7 @@ var value = new * 文字:超链接文字 ```csharp -var value = new +var value = new { ["Name"] = new MiniWordHyperLink(){ Url = "https://google.com", @@ -517,7 +541,7 @@ public class ApiController : Controller ## 支持 : [Donate Link](https://miniexcel.github.io/) wechat - + alipay -- Gitee