Class NoteTask
Namespace: Aspose.Note
Assembly: Aspose.Note.dll (24.12.0)
Represents a note task.
public sealed class NoteTask : CheckBox, ITag, IEquatable<notetask>
Inheritance
Implements
Inherited Members
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
Shows how to generate a pdf containing all pages related to ‘Project A’.```csharp // 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>
Shows how to access details of outlook's tasks.```csharp
// 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
Gets or sets the due date.
public DateTime DueDate { get; set; }
Property Value
Examples
Shows how to generate a pdf containing all pages related to ‘Project A’.```csharp // 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>
Shows how to access details of outlook's tasks.```csharp
// 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
Gets or sets the icon.
public override TagIcon Icon { get; }
Property Value
Methods
CreateCustomFollowUpDate(DateTime)
Creates a new note task with NoFollowUpDateFlag icon and specified due date.
public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)
Parameters
dueDate
DateTime
The due Date.
Returns
The Aspose.Note.NoteTask.
CreateFollowUpNextWeek()
Creates a new note task with FollowUpNextWeekFlag icon.
public static NoteTask CreateFollowUpNextWeek()
Returns
The Aspose.Note.NoteTask.
CreateFollowUpThisWeek()
Creates a new note task with FollowUpThisWeekFlag icon.
public static NoteTask CreateFollowUpThisWeek()
Returns
The Aspose.Note.NoteTask.
CreateFollowUpToday()
Creates a new note task with FollowUpTodayFlag icon.
public static NoteTask CreateFollowUpToday()
Returns
The Aspose.Note.NoteTask.
CreateFollowUpTomorrow()
Creates a new note task with FollowUpTomorrowFlag icon.
public static NoteTask CreateFollowUpTomorrow()
Returns
The Aspose.Note.NoteTask.
CreateNoFollowUpDate()
Creates a new note task with NoFollowUpDateFlag icon.
public static NoteTask CreateNoFollowUpDate()
Returns
The Aspose.Note.NoteTask.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
object
The object.
Returns
The System.Boolean.
Equals(NoteTask)
Determines whether the specified object is equal to the current object.
public bool Equals(NoteTask other)
Parameters
other
NoteTask
The object.
Returns
The System.Boolean.
GetHashCode()
Serves as a hash function for the type.
public override int GetHashCode()
Returns
The System.Int32.
SetOpen()
Sets the tag to open state.
public override void SetOpen()
</notetask>