Interface INoteTag
Interface INoteTag
Το όνομα: Aspose.Note Συγκέντρωση: Aspose.Note.dll (25.4.0)
Η διεπαφή για τις ετικέτες σημειώσεων (δηλ. τα στοιχεία που δεν συνδέονται με τα καθήκοντα του Outlook).
public interface INoteTag : ITag
Implements
Examples
Δείχνει πώς να έχετε πρόσβαση στις λεπτομέρειες μιας ετικέτας.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Tags();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "TagFile.one");
// Get all RichText nodes
IList<richtext> nodes = oneFile.GetChildNodes<richtext>();
// Iterate through each node
foreach (RichText richText in nodes)
{
var tags = richText.Tags.OfType<notetag>();
if (tags.Any())
{
Console.WriteLine($"Text: {richText.Text}");
foreach (var noteTag in tags)
{
// Retrieve properties
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}");
}
}
}</notetag></richtext></richtext>
Properties
FontColor
Αποκτήστε ή ρυθμίστε το χρώμα της γραμματοσειράς.
Color FontColor { get; set; }
Αξία ιδιοκτησίας
Examples
Δείχνει πώς να έχετε πρόσβαση στις λεπτομέρειες μιας ετικέτας.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Tags();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "TagFile.one");
// Get all RichText nodes
IList<richtext> nodes = oneFile.GetChildNodes<richtext>();
// Iterate through each node
foreach (RichText richText in nodes)
{
var tags = richText.Tags.OfType<notetag>();
if (tags.Any())
{
Console.WriteLine($"Text: {richText.Text}");
foreach (var noteTag in tags)
{
// Retrieve properties
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}");
}
}
}</notetag></richtext></richtext>
Highlight
Παίρνει ή καθορίζει το χρώμα.
Color Highlight { get; set; }
Αξία ιδιοκτησίας
Examples
Δείχνει πώς να έχετε πρόσβαση στις λεπτομέρειες μιας ετικέτας.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Tags();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "TagFile.one");
// Get all RichText nodes
IList<richtext> nodes = oneFile.GetChildNodes<richtext>();
// Iterate through each node
foreach (RichText richText in nodes)
{
var tags = richText.Tags.OfType<notetag>();
if (tags.Any())
{
Console.WriteLine($"Text: {richText.Text}");
foreach (var noteTag in tags)
{
// Retrieve properties
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}");
}
}
}</notetag></richtext></richtext>
Label
Αποκτά ή τοποθετεί το κείμενο ετικέτας.
string Label { get; set; }