diff --git a/README.zh-CN.md b/README.zh-CN.md index 5d0e1a28add62d5e56c9cfca1b00a84dd0e4d8bb..7ef4c78d8bb8cac4b105342a41221468ff7c5ec2 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