Skip to content

Commit 2a077b5

Browse files
committed
字体ForeColor和BackColor功能的readme
1 parent d110ea7 commit 2a077b5

3 files changed

Lines changed: 39 additions & 2 deletions

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,19 @@ var value = new { title = "Hello MiniWord" };
193193
MiniWord.SaveAsByTemplate(outputPath, templatePath, value);
194194
```
195195

196-
196+
### Font ForeColor and BackColor functions
197+
```csharp
198+
var value = new
199+
{
200+
Company_Name = new MiniWordColorText { Text = "MiniSofteware", ForeColor = "#eb70AB" },
201+
Name = new MiniWordColorText { Text = "Jack", BackColor = "#eb70AB" },
202+
CreateDate = new MiniWordColorText { Text = new DateTime(2021, 01, 01).ToString(), BackColor = "#eb70AB", ForeColor = "#ffffff" },
203+
204+
VIP = true,
205+
Points = 123,
206+
APP = "Demo APP",
207+
};
208+
```
197209

198210

199211

README.zh-CN.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,19 @@ var value = new { title = "Hello MiniWord" };
199199
MiniWord.SaveAsByTemplate(outputPath, templatePath, value);
200200
```
201201

202+
### 字体ForeColor和BackColor功能
203+
```csharp
204+
var value = new
205+
{
206+
Company_Name = new MiniWordColorText { Text = "MiniSofteware", ForeColor = "#eb70AB" },
207+
Name = new MiniWordColorText { Text = "Jack", BackColor = "#eb70AB" },
208+
CreateDate = new MiniWordColorText { Text = new DateTime(2021, 01, 01).ToString(), BackColor = "#eb70AB", ForeColor = "#ffffff" },
209+
210+
VIP = true,
211+
Points = 123,
212+
APP = "Demo APP",
213+
};
214+
```
202215

203216

204217

README.zh-Hant.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,19 @@ v0.5.0 支持 POCO 或 dynamic parameter
196196
var value = new { title = "Hello MiniWord" };
197197
MiniWord.SaveAsByTemplate(outputPath, templatePath, value);
198198
```
199-
199+
### 字体ForeColor和BackColor功能
200+
```csharp
201+
var value = new
202+
{
203+
Company_Name = new MiniWordColorText { Text = "MiniSofteware", ForeColor = "#eb70AB" },
204+
Name = new MiniWordColorText { Text = "Jack", BackColor = "#eb70AB" },
205+
CreateDate = new MiniWordColorText { Text = new DateTime(2021, 01, 01).ToString(), BackColor = "#eb70AB", ForeColor = "#ffffff" },
206+
207+
VIP = true,
208+
Points = 123,
209+
APP = "Demo APP",
210+
};
211+
```
200212

201213

202214
## 例子

0 commit comments

Comments
 (0)