Class NoteTask
Numele spaţiului: Aspose.Note Asamblare: Aspose.Note.dll (25.4.0)
Reprezintă o sarcină de notă.
public sealed class NoteTask : CheckBox, ITag, IEquatable<notetask>
Inheritance
Implements
Membrii moștenitori
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
Afișează modul de generare a unui PDF care conține toate paginile legate de ‘Proiectul A’.
// 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>
Afișează cum să accesezi detaliile sarcinilor Outlook.
// 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
Obține sau stabilește data corespunzătoare.
public DateTime DueDate { get; set; }
Valoarea proprietății
Examples
Afișează modul de generare a unui PDF care conține toate paginile legate de ‘Proiectul A’.
// 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>
Afișează cum să accesezi detaliile sarcinilor Outlook.
// 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
Obțineți sau puneți icoana.
public override TagIcon Icon { get; }
Valoarea proprietății
Methods
CreateCustomFollowUpDate(DateTime)
Creează o nouă sarcină de notă cu iconul NoFollowUpDateFlag și data specificată.
public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)
Parameters
dueDate
DateTime
Dată de două ori.
Returns
Cuvânt cheie WL31_.NoteTask.
CreateFollowUpNextWeek()
Creează o nouă sarcină de notă cu iconul FollowUpNextWeekFlag.
public static NoteTask CreateFollowUpNextWeek()
Returns
Cuvânt cheie WL31_.NoteTask.
CreateFollowUpThisWeek()
Creează o nouă sarcină de notă cu iconul FollowUpThisWeekFlag.
public static NoteTask CreateFollowUpThisWeek()
Returns
Cuvânt cheie WL31_.NoteTask.
CreateFollowUpToday()
Creează o nouă sarcină de notă cu iconul FollowUpTodayFlag.
public static NoteTask CreateFollowUpToday()
Returns
Cuvânt cheie WL31_.NoteTask.
CreateFollowUpTomorrow()
Creează o nouă sarcină de notă cu iconul FollowUpTomorrowFlag.
public static NoteTask CreateFollowUpTomorrow()
Returns
Cuvânt cheie WL31_.NoteTask.
CreateNoFollowUpDate()
Creează o nouă sarcină de notă cu iconul NoFollowUpDateFlag.
public static NoteTask CreateNoFollowUpDate()
Returns
Cuvânt cheie WL31_.NoteTask.
Equals(Obiectul)
Determină dacă obiectul specificat este egal cu obiectul actual.
public override bool Equals(object obj)
Parameters
obj
object
şi obiectul .
Returns
Cuvânt cheie: Boolean
Equals(NoteTask)
Determină dacă obiectul specificat este egal cu obiectul actual.
public bool Equals(NoteTask other)
Parameters
other
NoteTask
şi obiectul .
Returns
Cuvânt cheie: Boolean
GetHashCode()
Acesta servește ca o funcție hash pentru tipul.
public override int GetHashCode()
Returns
Cuvânt cheie: Int32.
SetOpen()
Stabiliți eticheta pentru a deschide statul.
public override void SetOpen()