## NoteTag class

代表一个音符标签。

```csharp
public sealed class NoteTag : IEquatable<NoteTag>, INoteTag
```

## 特性

| 姓名 | 描述 |
| --- | --- |
| [CompletedTime](../../aspose.note/notetag/completedtime/) { get; } | 获取或设置完成时间。 |
| [CreationTime](../../aspose.note/notetag/creationtime/) { get; set; } | 获取或设置创建时间。 |
| [FontColor](../../aspose.note/notetag/fontcolor/) { get; set; } | 获取或设置字体颜色。 |
| [Highlight](../../aspose.note/notetag/highlight/) { get; set; } | 获取或设置高亮颜色。 |
| [Icon](../../aspose.note/notetag/icon/) { get; set; } | 获取或设置图标。 |
| [Label](../../aspose.note/notetag/label/) { get; set; } | 获取或设置标签文本。 |
| [Status](../../aspose.note/notetag/status/) { get; } | 获取或设置状态。 |

## 方法

| 姓名 | 描述 |
| --- | --- |
| static [CreateAwardRibbon](../../aspose.note/notetag/createawardribbon/)(string) | 创建一个带有 AwardRibbon 图标和指定标签的新笔记标签。 |
| static [CreateBinoculars](../../aspose.note/notetag/createbinoculars/)(string) | 创建一个带有双筒望远镜图标和指定标签的新笔记标签。 |
| static [CreateBlankPaperWithLines](../../aspose.note/notetag/createblankpaperwithlines/)(string) | 创建一个带有 BlankPaperWithLines 图标和指定标签的新笔记标签。 |
| static [CreateBlueCheckMark](../../aspose.note/notetag/createbluecheckmark/)(string) | 创建一个带有 BlueCheckMark 图标和指定标签的新笔记标签。 |
| static [CreateBlueCircle](../../aspose.note/notetag/createbluecircle/)(string) | 创建一个带有 BlueCircle 图标和指定标签的新笔记标签。 |
| static [CreateBlueCircle1](../../aspose.note/notetag/createbluecircle1/)(string) | 创建一个带有 BlueCircle1 图标和指定标签的新笔记标签。 |
| static [CreateBlueCircle2](../../aspose.note/notetag/createbluecircle2/)(string) | 创建一个带有 BlueCircle2 图标和指定标签的新笔记标签。 |
| static [CreateBlueCircle3](../../aspose.note/notetag/createbluecircle3/)(string) | 创建一个带有 BlueCircle3 图标和指定标签的新笔记标签。 |
| static [CreateBlueDownArrow](../../aspose.note/notetag/createbluedownarrow/)(string) | 创建一个带有 BlueDownArrow 图标和指定标签的新笔记标签。 |
| static [CreateBlueEightPointStar](../../aspose.note/notetag/createblueeightpointstar/)(string) | 创建一个带有 BlueEightPointStar 图标和指定标签的新笔记标签。 |
| static [CreateBlueFollowUpFlag](../../aspose.note/notetag/createbluefollowupflag/)(string) | 创建一个带有 BlueFollowUpFlag 图标和指定标签的新笔记标签。 |
| static [CreateBlueLeftArrow](../../aspose.note/notetag/createblueleftarrow/)(string) | 创建一个带有 BlueLeftArrow 图标和指定标签的新笔记标签。 |
| static [CreateBlueRightArrow](../../aspose.note/notetag/createbluerightarrow/)(string) | 创建一个带有 BlueRightArrow 图标和指定标签的新笔记标签。 |
| static [CreateBlueSolidTarget](../../aspose.note/notetag/createbluesolidtarget/)(string) | 创建一个带有 BlueSolidTarget 图标和指定标签的新笔记标签。 |
| static [CreateBlueSquare](../../aspose.note/notetag/createbluesquare/)(string) | 创建一个带有 BlueSquare 图标和指定标签的新笔记标签。 |
| static [CreateBlueStar](../../aspose.note/notetag/createbluestar/)(string) | 创建一个带有 BlueStar 图标和指定标签的新笔记标签。 |
| static [CreateBlueSun](../../aspose.note/notetag/createbluesun/)(string) | 创建一个带有 BlueSun 图标和指定标签的新笔记标签。 |
| static [CreateBlueTarget](../../aspose.note/notetag/createbluetarget/)(string) | 创建一个带有 BlueTarget 图标和指定标签的新笔记标签。 |
| static [CreateBlueTriangle](../../aspose.note/notetag/createbluetriangle/)(string) | 创建一个带有 BlueTriangle 图标和指定标签的新笔记标签。 |
| static [CreateBlueUmbrella](../../aspose.note/notetag/createblueumbrella/)(string) | 创建一个带有 BlueUmbrella 图标和指定标签的新笔记标签。 |
| static [CreateBlueUpArrow](../../aspose.note/notetag/createblueuparrow/)(string) | 创建一个带有 BlueUpArrow 图标和指定标签的新笔记标签。 |
| static [CreateBlueXNo](../../aspose.note/notetag/createbluexno/)(string) | 创建一个带有 BlueXNo 图标和指定标签的新笔记标签。 |
| static [CreateBlueXWithDots](../../aspose.note/notetag/createbluexwithdots/)(string) | 创建一个带有 BlueXWithDots 图标和指定标签的新笔记标签。 |
| static [CreateCalendarDateWithClock](../../aspose.note/notetag/createcalendardatewithclock/)(string) | 创建一个带有 CalendarDateWithClock 图标和指定标签的新笔记标签。 |
| static [CreateCar](../../aspose.note/notetag/createcar/)(string) | 创建一个带有汽车图标和指定标签的新笔记标签。 |
| static [CreateClosedEnvelope](../../aspose.note/notetag/createclosedenvelope/)(string) | 创建一个带有 ClosedEnvelope 图标和指定标签的新笔记标签。 |
| static [CreateCloud](../../aspose.note/notetag/createcloud/)(string) | 创建一个带有云图标和指定标签的新笔记标签。 |
| static [CreateCoinsWithWindowBackdrop](../../aspose.note/notetag/createcoinswithwindowbackdrop/)(string) | 创建一个带有 CoinsWithWindowBackdrop 图标和指定标签的新笔记标签。 |
| static [CreateCommentBubble](../../aspose.note/notetag/createcommentbubble/)(string) | 创建一个带有 CommentBubble 图标和指定标签的新笔记标签。 |
| static [CreateContactInformation](../../aspose.note/notetag/createcontactinformation/)(string) | 创建一个带有 ContactInformation 图标和指定标签的新笔记标签。 |
| static [CreateContactPersonOnCard](../../aspose.note/notetag/createcontactpersononcard/)(string) | 创建一个带有 ContactPersonOnCard 图标和指定标签的新笔记标签。 |
| static [CreateDollarSign](../../aspose.note/notetag/createdollarsign/)(string) | 创建一个带有 DollarSign 图标和指定标签的新笔记标签。 |
| static [CreateEMailMessage](../../aspose.note/notetag/createemailmessage/)(string) | 创建一个带有 EMailMessage 图标和指定标签的新笔记标签。 |
| static [CreateFrowningFace](../../aspose.note/notetag/createfrowningface/)(string) | 创建一个带有 FrowningFace 图标和指定标签的新笔记标签。 |
| static [CreateGlobe](../../aspose.note/notetag/createglobe/)(string) | 创建一个带有地球图标和指定标签的新笔记标签。 |
| static [CreateGreenCheckMark](../../aspose.note/notetag/creategreencheckmark/)(string) | 创建一个带有 GreenCheckMark 图标和指定标签的新笔记标签。 |
| static [CreateGreenCircle](../../aspose.note/notetag/creategreencircle/)(string) | 创建一个带有 GreenCircle 图标和指定标签的新笔记标签。 |
| static [CreateGreenCircle1](../../aspose.note/notetag/creategreencircle1/)(string) | 创建一个带有 GreenCircle1 图标和指定标签的新笔记标签。 |
| static [CreateGreenCircle2](../../aspose.note/notetag/creategreencircle2/)(string) | 创建一个带有 GreenCircle2 图标和指定标签的新笔记标签。 |
| static [CreateGreenCircle3](../../aspose.note/notetag/creategreencircle3/)(string) | 创建一个带有 GreenCircle3 图标和指定标签的新笔记标签。 |
| static [CreateGreenDownArrow](../../aspose.note/notetag/creategreendownarrow/)(string) | 创建一个带有 GreenDownArrow 图标和指定标签的新笔记标签。 |
| static [CreateGreenEightPointStar](../../aspose.note/notetag/creategreeneightpointstar/)(string) | 创建一个带有 GreenEightPointStar 图标和指定标签的新笔记标签。 |
| static [CreateGreenLeftArrow](../../aspose.note/notetag/creategreenleftarrow/)(string) | 创建一个带有 GreenLeftArrow 图标和指定标签的新笔记标签。 |
| static [CreateGreenRightArrow](../../aspose.note/notetag/creategreenrightarrow/)(string) | 创建一个带有 GreenRightArrow 图标和指定标签的新笔记标签。 |
| static [CreateGreenSolidArrow](../../aspose.note/notetag/creategreensolidarrow/)(string) | 创建一个带有 GreenSolidArrow 图标和指定标签的新笔记标签。 |
| static [CreateGreenSquare](../../aspose.note/notetag/creategreensquare/)(string) | 创建一个带有 GreenSquare 图标和指定标签的新笔记标签。 |
| static [CreateGreenStar](../../aspose.note/notetag/creategreenstar/)(string) | 创建一个带有 GreenStar 图标和指定标签的新笔记标签。 |
| static [CreateGreenSun](../../aspose.note/notetag/creategreensun/)(string) | 创建一个带有 GreenSun 图标和指定标签的新笔记标签。 |
| static [CreateGreenTarget](../../aspose.note/notetag/creategreentarget/)(string) | 创建一个带有 GreenTarget 图标和指定标签的新笔记标签。 |
| static [CreateGreenTriangle](../../aspose.note/notetag/creategreentriangle/)(string) | 创建一个带有绿色三角形图标和指定标签的新笔记标签。 |
| static [CreateGreenUmbrella](../../aspose.note/notetag/creategreenumbrella/)(string) | 创建一个带有 GreenUmbrella 图标和指定标签的新笔记标签。 |
| static [CreateGreenUpArrow](../../aspose.note/notetag/creategreenuparrow/)(string) | 创建一个带有 GreenUpArrow 图标和指定标签的新笔记标签。 |
| static [CreateGreenXNo](../../aspose.note/notetag/creategreenxno/)(string) | 创建一个带有 GreenXNo 图标和指定标签的新笔记标签。 |
| static [CreateGreenXWithDots](../../aspose.note/notetag/creategreenxwithdots/)(string) | 创建一个带有 GreenXWithDots 图标和指定标签的新笔记标签。 |
| static [CreateHeart](../../aspose.note/notetag/createheart/)(string) | 创建一个带有心形图标和指定标签的新笔记标签。 |
| static [CreateHighPriority](../../aspose.note/notetag/createhighpriority/)(string) | 创建一个带有 HighPriority 图标和指定标签的新笔记标签。 |
| static [CreateHome](../../aspose.note/notetag/createhome/)(string) | 创建一个带有主页图标和指定标签的新笔记标签。 |
| static [CreateHyperlinkGlobe](../../aspose.note/notetag/createhyperlinkglobe/)(string) | 创建一个带有 HyperlinkGlobe 图标和指定标签的新笔记标签。 |
| static [CreateInstantMessagingContactPerson](../../aspose.note/notetag/createinstantmessagingcontactperson/)(string) | 创建一个带有 InstantMessagingContactPerson 图标和指定标签的新笔记标签。 |
| static [CreateLaptop](../../aspose.note/notetag/createlaptop/)(string) | 创建一个带有笔记本电脑图标和指定标签的新笔记标签。 |
| static [CreateLightBulb](../../aspose.note/notetag/createlightbulb/)(string) | 创建一个带有灯泡图标和指定标签的新笔记标签。 |
| static [CreateLightningBolt](../../aspose.note/notetag/createlightningbolt/)(string) | 创建一个带有 LightningBolt 图标和指定标签的新笔记标签。 |
| static [CreateMeeting](../../aspose.note/notetag/createmeeting/)(string) | 创建一个带有会议图标和指定标签的新笔记标签。 |
| static [CreateMobilePhone](../../aspose.note/notetag/createmobilephone/)(string) | 创建一个带有手机图标和指定标签的新笔记标签。 |
| static [CreateMovieClip](../../aspose.note/notetag/createmovieclip/)(string) | 创建一个带有 MovieClip 图标和指定标签的新笔记标签。 |
| static [CreateMusicalNote](../../aspose.note/notetag/createmusicalnote/)(string) | 创建一个带有 MusicalNote 图标和指定标签的新音符标签。 |
| static [CreateNoIcon](../../aspose.note/notetag/createnoicon/)(string) | 创建一个没有图标和指定标签的新笔记标签。 |
| static [CreateNotebookWithClock](../../aspose.note/notetag/createnotebookwithclock/)(string) | 创建一个带有 NotebookWithClock 图标和指定标签的新笔记标签。 |
| static [CreateOpenBook](../../aspose.note/notetag/createopenbook/)(string) | 创建一个带有 OpenBook 图标和指定标签的新笔记标签。 |
| static [CreateOpenEnvelope](../../aspose.note/notetag/createopenenvelope/)(string) | 创建一个带有 OpenEnvelope 图标和指定标签的新笔记标签。 |
| static [CreateOrangeSquare](../../aspose.note/notetag/createorangesquare/)(string) | 创建一个带有 OrangeSquare 图标和指定标签的新笔记标签。 |
| static [CreatePadlock](../../aspose.note/notetag/createpadlock/)(string) | 创建一个带有挂锁图标和指定标签的新笔记标签。 |
| static [CreatePaperClip](../../aspose.note/notetag/createpaperclip/)(string) | 创建一个带有回形针图标和指定标签的新笔记标签。 |
| static [CreatePen](../../aspose.note/notetag/createpen/)(string) | 创建一个带有笔图标和指定标签的新笔记标签。 |
| static [CreatePersonWithExclamationMark](../../aspose.note/notetag/createpersonwithexclamationmark/)(string) | 创建一个带有 PersonWithExclamationMark 图标和指定标签的新笔记标签。 |
| static [CreatePinkSquare](../../aspose.note/notetag/createpinksquare/)(string) | 创建一个带有 PinkSquare 图标和指定标签的新笔记标签。 |
| static [CreatePlane](../../aspose.note/notetag/createplane/)(string) | 创建一个带有平面图标和指定标签的新笔记标签。 |
| static [CreatePresentationSlide](../../aspose.note/notetag/createpresentationslide/)(string) | 创建一个带有 PresentationSlide 图标和指定标签的新笔记标签。 |
| static [CreatePushpin](../../aspose.note/notetag/createpushpin/)(string) | 创建一个带有图钉图标和指定标签的新笔记标签。 |
| static [CreateQuestionBalloon](../../aspose.note/notetag/createquestionballoon/)(string) | 创建一个带有问题气球图标和指定标签的新笔记标签。 |
| static [CreateQuestionMark](../../aspose.note/notetag/createquestionmark/)(string) | 创建一个带有问号图标和指定标签的新笔记标签。 |
| static [CreateQuotationMark](../../aspose.note/notetag/createquotationmark/)(string) | 创建一个带有 QuotationMark 图标和指定标签的新笔记标签。 |
| static [CreateRedSquare](../../aspose.note/notetag/createredsquare/)(string) | 创建一个带有 RedSquare 图标和指定标签的新笔记标签。 |
| static [CreateReminderBell](../../aspose.note/notetag/createreminderbell/)(string) | 创建一个带有 ReminderBell 图标和指定标签的新笔记标签。 |
| static [CreateResearch](../../aspose.note/notetag/createresearch/)(string) | 创建一个带有研究图标和指定标签的新笔记标签。 |
| static [CreateRoseOnStem](../../aspose.note/notetag/createroseonstem/)(string) | 创建一个带有 RoseOnStem 图标和指定标签的新笔记标签。 |
| static [CreateScheduledTask](../../aspose.note/notetag/createscheduledtask/)(string) | 创建一个带有 ScheduledTask 图标和指定标签的新笔记标签。 |
| static [CreateSmilingFace](../../aspose.note/notetag/createsmilingface/)(string) | 创建一个带有 SmilingFace 图标和指定标签的新笔记标签。 |
| static [CreateSunflower](../../aspose.note/notetag/createsunflower/)(string) | 创建一个带有向日葵图标和指定标签的新笔记标签。 |
| static [CreateTelephoneWithClock](../../aspose.note/notetag/createtelephonewithclock/)(string) | 创建一个带有 TelephoneWithClock 图标和指定标签的新笔记标签。 |
| static [CreateTimeSensitive](../../aspose.note/notetag/createtimesensitive/)(string) | 创建一个带有 TimeSensitive 图标和指定标签的新笔记标签。 |
| static [CreateTwoPeople](../../aspose.note/notetag/createtwopeople/)(string) | 创建一个带有 TwoPeople 图标和指定标签的新笔记标签。 |
| static [CreateYellowCheckMark](../../aspose.note/notetag/createyellowcheckmark/)(string) | 创建一个带有 YellowCheckMark 图标和指定标签的新笔记标签。 |
| static [CreateYellowCircle](../../aspose.note/notetag/createyellowcircle/)(string) | 创建一个带有 YellowCircle 图标和指定标签的新笔记标签。 |
| static [CreateYellowCircle1](../../aspose.note/notetag/createyellowcircle1/)(string) | 创建一个带有 YellowCircle1 图标和指定标签的新笔记标签。 |
| static [CreateYellowCircle2](../../aspose.note/notetag/createyellowcircle2/)(string) | 创建一个带有 YellowCircle2 图标和指定标签的新笔记标签。 |
| static [CreateYellowCircle3](../../aspose.note/notetag/createyellowcircle3/)(string) | 创建一个带有 YellowCircle3 图标和指定标签的新笔记标签。 |
| static [CreateYellowDownArrow](../../aspose.note/notetag/createyellowdownarrow/)(string) | 创建一个带有 YellowDownArrow 图标和指定标签的新笔记标签。 |
| static [CreateYellowEightPointStar](../../aspose.note/notetag/createyelloweightpointstar/)(string) | 创建一个带有 YellowEightPointStar 图标和指定标签的新笔记标签。 |
| static [CreateYellowKey](../../aspose.note/notetag/createyellowkey/)(string) | 创建一个带有 YellowKey 图标和指定标签的新笔记标签。 |
| static [CreateYellowLeftArrow](../../aspose.note/notetag/createyellowleftarrow/)(string) | 创建一个带有 YellowLeftArrow 图标和指定标签的新笔记标签。 |
| static [CreateYellowRightArrow](../../aspose.note/notetag/createyellowrightarrow/)(string) | 创建一个带有 YellowRightArrow 图标和指定标签的新笔记标签。 |
| static [CreateYellowSolidTarget](../../aspose.note/notetag/createyellowsolidtarget/)(string) | 创建一个带有 YellowSolidTarget 图标和指定标签的新笔记标签。 |
| static [CreateYellowSquare](../../aspose.note/notetag/createyellowsquare/)(string) | 创建一个带有 YellowSquare 图标和指定标签的新笔记标签。 |
| static [CreateYellowStar](../../aspose.note/notetag/createyellowstar/)(string) | 创建一个带有 YellowStar 图标和指定标签的新笔记标签。 |
| static [CreateYellowSun](../../aspose.note/notetag/createyellowsun/)(string) | 创建一个带有 YellowSun 图标和指定标签的新笔记标签。 |
| static [CreateYellowTarget](../../aspose.note/notetag/createyellowtarget/)(string) | 创建一个带有 YellowTarget 图标和指定标签的新笔记标签。 |
| static [CreateYellowTriangle](../../aspose.note/notetag/createyellowtriangle/)(string) | 创建一个带有黄色三角形图标和指定标签的新笔记标签。 |
| static [CreateYellowUmbrella](../../aspose.note/notetag/createyellowumbrella/)(string) | 创建一个带有 YellowUmbrella 图标和指定标签的新笔记标签。 |
| static [CreateYellowUpArrow](../../aspose.note/notetag/createyellowuparrow/)(string) | 创建一个带有 YellowUpArrow 图标和指定标签的新笔记标签。 |
| static [CreateYellowX](../../aspose.note/notetag/createyellowx/)(string) | 创建一个带有 YellowX 图标和指定标签的新笔记标签。 |
| static [CreateYellowXWithDots](../../aspose.note/notetag/createyellowxwithdots/)(string) | 创建一个带有 YellowXWithDots 图标和指定标签的新笔记标签。 |
| [Equals](../../aspose.note/notetag/equals/#equals)(NoteTag) | 判断指定对象是否等于当前对象。 |
| override [Equals](../../aspose.note/notetag/equals/#equals_1)(object) | 判断指定对象是否等于当前对象。 |
| override [GetHashCode](../../aspose.note/notetag/gethashcode/)() | 用作类型的哈希函数。 |

### 例子

显示如何添加带有标签的新图像。

```csharp
// 文档目录的路径。
string dataDir = RunExamples.GetDataDir_Tags();

// 创建文档类的对象
Document doc = new Document();

// 初始化页面类对象
Aspose.Note.Page page = new Aspose.Note.Page(doc);

// 初始化大纲类对象
Outline outline = new Outline(doc);

// 初始化 OutlineElement 类对象
OutlineElement outlineElem = new OutlineElement(doc);

// 加载图像
Aspose.Note.Image image = new Aspose.Note.Image(doc, dataDir + "icon.jpg");

// 在文档节点插入图片
outlineElem.AppendChildLast(image);
image.Tags.Add(NoteTag.CreateYellowStar());

// 添加轮廓元素节点
outline.AppendChildLast(outlineElem);

// 添加轮廓节点
page.AppendChildLast(outline);

// 添加页面节点
doc.AppendChildLast(page);

// 保存 OneNote 文档
dataDir = dataDir + "AddImageNodeWithTag_out.one";
doc.Save(dataDir);
```

显示如何添加带有标签的新段落。

```csharp
// 文档目录的路径。
string dataDir = RunExamples.GetDataDir_Tags();

// 创建文档类的对象
Document doc = new Document();

// 初始化页面类对象
Aspose.Note.Page page = new Aspose.Note.Page(doc);

// 初始化大纲类对象
Outline outline = new Outline(doc);

// 初始化 OutlineElement 类对象
OutlineElement outlineElem = new OutlineElement(doc);
ParagraphStyle textStyle = new ParagraphStyle { FontColor = Color.Black, FontName = "Arial", FontSize = 10 };
RichText text = new RichText(doc) { Text = "OneNote text.", ParagraphStyle = textStyle };
text.Tags.Add(NoteTag.CreateYellowStar());

// 添加文本节点
outlineElem.AppendChildLast(text);

// 添加轮廓元素节点
outline.AppendChildLast(outlineElem);

// 添加轮廓节点
page.AppendChildLast(outline);

// 添加页面节点
doc.AppendChildLast(page);

// 保存 OneNote 文档
dataDir = dataDir + "AddTextNodeWithTag_out.one";
doc.Save(dataDir);
```

显示如何访问标签的详细信息。

```csharp
// 文档目录的路径。
string dataDir = RunExamples.GetDataDir_Tags();

// 将文档加载到 Aspose.Note 中。
Document oneFile = new Document(dataDir + "TagFile.one");

// 获取所有 RichText 节点
IList<RichText> nodes = oneFile.GetChildNodes<RichText>();

//遍历每个节点
foreach (RichText richText in nodes)
{
    var tags = richText.Tags.OfType<NoteTag>();
    if (tags.Any())
    {
        Console.WriteLine($"Text: {richText.Text}");
        foreach (var noteTag in tags)
        {
            // 检索属性
            Console.WriteLine($"    Completed Time: {noteTag.CompletedTime}");
            Console.WriteLine($"    Create Time: {noteTag.CreationTime}");
            Console.WriteLine($"    Font Color: {noteTag.FontColor}");
            Console.WriteLine($"    Status: {noteTag.Status}");
            Console.WriteLine($"    Label: {noteTag.Label}");
            Console.WriteLine($"    Icon: {noteTag.Icon}");
            Console.WriteLine($"    High Light: {noteTag.Highlight}");
        }
    }
}
```

显示如何添加带有标签的新表。

```csharp
// 文档目录的路径。
string dataDir = RunExamples.GetDataDir_Tags();

// 创建文档类的对象
Document doc = new Document();

// 初始化页面类对象
Aspose.Note.Page page = new Aspose.Note.Page(doc);

// 初始化 TableRow 类对象
TableRow row = new TableRow(doc);

// 初始化 TableCell 类对象
TableCell cell = new TableCell(doc);

//插入单元格内容
cell.AppendChildLast(InsertTable.GetOutlineElementWithText(doc, "Single cell."));

// 将单元格添加到行节点
row.AppendChildLast(cell);

// 初始化表节点
Table table = new Table(doc)
              {
                  IsBordersVisible = true,
                  Columns = { new TableColumn { Width = 70 } }
              };

// 在表中插入行节点
table.AppendChildLast(row);

// 给这个表节点添加标签
table.Tags.Add(NoteTag.CreateQuestionMark());

Outline outline = new Outline(doc);
OutlineElement outlineElem = new OutlineElement(doc);

// 添加表节点
outlineElem.AppendChildLast(table);

// 添加轮廓元素
outline.AppendChildLast(outlineElem);
page.AppendChildLast(outline);
doc.AppendChildLast(page);

// 保存 OneNote 文档
dataDir = dataDir + "AddTableNodeWithTag_out.one";
doc.Save(dataDir);
```

展示如何为每周会议准备模板。

```csharp
// 文档目录的路径。
string dataDir = RunExamples.GetDataDir_Tags();

// 创建文档类的对象
var headerStyle = new ParagraphStyle() { FontName = "Calibri", FontSize = 16 };
var bodyStyle = new ParagraphStyle() { FontName = "Calibri", FontSize = 12 };

var d = new Document();
bool restartFlag = true;
var outline = d.AppendChildLast(new Page()
                                    {
                                        Title = new Title() { TitleText = new RichText() { Text = $"Weekly meeting {DateTime.Today:d}", ParagraphStyle = ParagraphStyle.Default } }
                                    })
               .AppendChildLast(new Outline() { VerticalOffset = 30, HorizontalOffset = 30 });

outline.AppendChildLast(new OutlineElement())
       .AppendChildLast(new RichText() { Text = "Important", ParagraphStyle = headerStyle });
foreach (var e in new[] { "First", "Second", "Third" })
{
    outline.AppendChildLast(new OutlineElement() { NumberList = CreateListNumberingStyle(bodyStyle, restartFlag) })
           .AppendChildLast(new RichText() { Text = e, ParagraphStyle = bodyStyle });
    restartFlag = false;
}

outline.AppendChildLast(new OutlineElement())
       .AppendChildLast(new RichText() { Text = "TO DO", ParagraphStyle = headerStyle, SpaceBefore = 15 });
restartFlag = true;
foreach (var e in new[] { "First", "Second", "Third" })
{
    outline.AppendChildLast(new OutlineElement() { NumberList = CreateListNumberingStyle(bodyStyle, restartFlag) })
           .AppendChildLast(new RichText() { Text = e, ParagraphStyle = bodyStyle, Tags = { NoteCheckBox.CreateBlueCheckBox() } });
    restartFlag = false;
}

d.Save(Path.Combine(dataDir, "meetingNotes.one"));
```

### 也可以看看

* interface [INoteTag](../inotetag/)
* 命名空间 [Aspose.Note](../../aspose.note/)
* 部件 [Aspose.Note](../../)


