Class NoteTask
Der Name: Aspose.Note Zusammensetzung: Aspose.Note.dll (25.4.0)
Es handelt sich um eine Note-Task.
public sealed class NoteTask : CheckBox, ITag, IEquatable<notetask>
Inheritance
Implements
Vererbte Mitglieder
CheckBox.SetCompleted(DateTime) , CheckBox.SetCompleted() , CheckBox.SetOpen() , CheckBox.CreationTime , CheckBox.CompletedTime , CheckBox.Status , CheckBox.Icon , CheckBox.Label , CheckBox.Checked , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Zeigt, wie man ein PDF erzeugt, das alle Seiten im Zusammenhang mit “Projekt A” enthält.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Tags();
// Load the document into Aspose.Note.
var oneFile = new Document(Path.Combine(dataDir, "ProjectNotes.one"));
var report = new Document();
foreach (var page in oneFile)
{
if (page.GetChildNodes<itaggable>().Any(e => e.Tags.Any(x => x.Label.Contains("Project A"))))
{
report.AppendChildLast(page.Clone());
}
}
report.Save(Path.Combine(dataDir, "ProjectA_Report.pdf"));</itaggable>
Zeigt, wie man auf Details der Aufgaben von Outlook zugreifen kann.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Tasks();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "Aspose.one");
// Get all RichText nodes
IList<richtext> nodes = oneFile.GetChildNodes<richtext>();
// Iterate through each node
foreach (RichText richText in nodes)
{
var tasks = richText.Tags.OfType<notetask>();
if (tasks.Any())
{
Console.WriteLine($"Task: {richText.Text}");
foreach (var noteTask in tasks)
{
// Retrieve properties
Console.WriteLine($" Completed Time: {noteTask.CompletedTime}");
Console.WriteLine($" Create Time: {noteTask.CreationTime}");
Console.WriteLine($" Due Date: {noteTask.DueDate}");
Console.WriteLine($" Status: {noteTask.Status}");
Console.WriteLine($" Icon: {noteTask.Icon}");
}
}
}</notetask></richtext></richtext>
Properties
DueDate
Gibt oder legt die angemessene Datum fest.
public DateTime DueDate { get; set; }
Eigentumswert
Examples
Zeigt, wie man ein PDF erzeugt, das alle Seiten im Zusammenhang mit “Projekt A” enthält.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Tags();
// Load the document into Aspose.Note.
var oneFile = new Document(Path.Combine(dataDir, "ProjectNotes.one"));
var report = new Document();
foreach (var page in oneFile)
{
if (page.GetChildNodes<itaggable>().Any(e => e.Tags.Any(x => x.Label.Contains("Project A"))))
{
report.AppendChildLast(page.Clone());
}
}
report.Save(Path.Combine(dataDir, "ProjectA_Report.pdf"));</itaggable>
Zeigt, wie man auf Details der Aufgaben von Outlook zugreifen kann.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Tasks();
// Load the document into Aspose.Note.
Document oneFile = new Document(dataDir + "Aspose.one");
// Get all RichText nodes
IList<richtext> nodes = oneFile.GetChildNodes<richtext>();
// Iterate through each node
foreach (RichText richText in nodes)
{
var tasks = richText.Tags.OfType<notetask>();
if (tasks.Any())
{
Console.WriteLine($"Task: {richText.Text}");
foreach (var noteTask in tasks)
{
// Retrieve properties
Console.WriteLine($" Completed Time: {noteTask.CompletedTime}");
Console.WriteLine($" Create Time: {noteTask.CreationTime}");
Console.WriteLine($" Due Date: {noteTask.DueDate}");
Console.WriteLine($" Status: {noteTask.Status}");
Console.WriteLine($" Icon: {noteTask.Icon}");
}
}
}</notetask></richtext></richtext>
Icon
Gibt oder setzt die Ikon.
public override TagIcon Icon { get; }
Eigentumswert
Methods
CreateCustomFollowUpDate(DateTime)
Erstellt eine neue Note-Task mit dem NoFollowUpDateFlag-Ikon und angegebenem Datum.
public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)
Parameters
dueDate
DateTime
Das zweite Datum.
Returns
Die Aspose.Note und Notes.
CreateFollowUpNextWeek()
Erstellen Sie eine neue Note-Task mit dem FollowUpNextWeekFlag-Ikon.
public static NoteTask CreateFollowUpNextWeek()
Returns
Die Aspose.Note und Notes.
CreateFollowUpThisWeek()
Erstellen Sie eine neue Note-Task mit dem FollowUpThisWeekFlag-Ikon.
public static NoteTask CreateFollowUpThisWeek()
Returns
Die Aspose.Note und Notes.
CreateFollowUpToday()
Erstellen Sie eine neue Note-Task mit dem FollowUpTodayFlag-Icon.
public static NoteTask CreateFollowUpToday()
Returns
Die Aspose.Note und Notes.
CreateFollowUpTomorrow()
Erstellen Sie eine neue Note-Task mit dem FollowUpTomorrowFlag-Icon.
public static NoteTask CreateFollowUpTomorrow()
Returns
Die Aspose.Note und Notes.
CreateNoFollowUpDate()
Erstellt eine neue Note-Task mit dem NoFollowUpDateFlag-Ikon.
public static NoteTask CreateNoFollowUpDate()
Returns
Die Aspose.Note und Notes.
Equals(Objekt)
Bestimmt, ob das angegebenes Objekt gleich dem aktuellen Objekt ist.
public override bool Equals(object obj)
Parameters
obj
object
Das Objekt.
Returns
Das System.Boolean
Equals(NoteTask)
Bestimmt, ob das angegebenes Objekt gleich dem aktuellen Objekt ist.
public bool Equals(NoteTask other)
Parameters
other
NoteTask
Das Objekt.
Returns
Das System.Boolean
GetHashCode()
Es dient als Hash-Funktion für den Typ.
public override int GetHashCode()
Returns
Das System.Int32.
SetOpen()
Setzen Sie den Tag in den offenen Zustand.
public override void SetOpen()