Skip to content

Commit 6a51dd6

Browse files
committed
doc FontColor and HighlightColor
1 parent ed16a6d commit 6a51dd6

3 files changed

Lines changed: 21 additions & 9 deletions

File tree

README.md

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

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

198211
If value type is `MiniWordHyperLink` system will replace template string by hyperlink.

README.zh-CN.md

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

202-
### 字体ForeColor和BackColor功能
202+
### 字体FontColor和HighlightColor
203203
```csharp
204204
var value = new
205205
{
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" },
206+
Company_Name = new MiniWordColorText { Text = "MiniSofteware", FontColor = "#eb70AB" },
207+
Name = new MiniWordColorText { Text = "Jack", HighlightColor = "#eb70AB" },
208+
CreateDate = new MiniWordColorText { Text = new DateTime(2021, 01, 01).ToString(), HighlightColor = "#eb70AB", FontColor = "#ffffff" },
209209
VIP = true,
210210
Points = 123,
211211
APP = "Demo APP",

README.zh-Hant.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,13 @@ var value = new { title = "Hello MiniWord" };
197197
MiniWord.SaveAsByTemplate(outputPath, templatePath, value);
198198
```
199199

200-
### 字体ForeColor和BackColor功能
200+
### 字体FontColor和HighlightColor
201201
```csharp
202202
var value = new
203203
{
204-
Company_Name = new MiniWordColorText { Text = "MiniSofteware", ForeColor = "#eb70AB" },
205-
Name = new MiniWordColorText { Text = "Jack", BackColor = "#eb70AB" },
206-
CreateDate = new MiniWordColorText { Text = new DateTime(2021, 01, 01).ToString(), BackColor = "#eb70AB", ForeColor = "#ffffff" },
207-
204+
Company_Name = new MiniWordColorText { Text = "MiniSofteware", FontColor = "#eb70AB" },
205+
Name = new MiniWordColorText { Text = "Jack", HighlightColor = "#eb70AB" },
206+
CreateDate = new MiniWordColorText { Text = new DateTime(2021, 01, 01).ToString(), HighlightColor = "#eb70AB", FontColor = "#ffffff" },
208207
VIP = true,
209208
Points = 123,
210209
APP = "Demo APP",

0 commit comments

Comments
 (0)