Interface INoteTag
Interface INoteTag
Pôvodný názov: Aspose.Note Zhromaždenie: Aspose.Note.dll (25.4.0)
Rozhranie pre poznámkové značky (t. j. značky, ktoré nie sú spojené s úlohami programu Outlook).
public interface INoteTag : ITag
{
}
Implements
Examples
Ukážte, ako získať prístup k detailom značky.
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
Dostane alebo nastaví farbu písma.
Color fontColor;
public Color FontColor
{
get { return fontColor; }
set { fontColor = value; }
}
Hodnota nehnuteľnosti
Examples
Ukážte, ako získať prístup k detailom značky.
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
Získajte alebo nastavíte farbu.
Color highLight { get; set; }
Hodnota nehnuteľnosti
Examples
Ukážte, ako získať prístup k detailom značky.
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
Získať alebo nastaviť štítok text.
string Label
{
get
{
}
set
{
}
}