Interface INoteTag
Interface INoteTag
Tên không gian: Aspose.Note Tổng hợp: Aspose.Note.dll (25.4.0)
Giao diện cho thẻ ghi chú (ví dụ: thẻ không liên quan đến các nhiệm vụ Outlook).
public interface INoteTag : ITag
{
}
Implements
Examples
Hiển thị cách truy cập các chi tiết của một thẻ.
string dataDir = RunExamples.GetDataDir_Tags();
Document oneFile = new Document(dataDir + "TagFile.one");
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}");
}
}
}
Properties
FontColor
Nhận hoặc đặt màu font.
Color fontColor;
public Color FontColor
{
get { return fontColor; }
set { fontColor = value; }
}
Giá trị bất động sản
Examples
Hiển thị cách truy cập các chi tiết của một thẻ.
string dataDir = RunExamples.GetDataDir_Tags();
Document oneFile = new Document(dataDir + "TagFile.one");
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}");
}
}
}
Highlight
Nhận hoặc đặt màu sắc nổi bật.
Color highLight { get; set; }
Giá trị bất động sản
Examples
Hiển thị cách truy cập các chi tiết của một thẻ.
string dataDir = RunExamples.GetDataDir_Tags();
Document oneFile = new Document(dataDir + "TagFile.one");
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}");
}
}
}
Label
Nhận hoặc đặt nhãn văn bản.
string Label
{
get
{
}
set
{
}
}