Class NoteTask

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

object CheckBox NoteTask

Implements

ITag , IEquatable

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 =&gt; e.Tags.Any(x =&gt; 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

DateTime

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 =&gt; e.Tags.Any(x =&gt; 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

TagIcon

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

NoteTask

Cuvânt cheie WL31_.NoteTask.

CreateFollowUpNextWeek()

Creează o nouă sarcină de notă cu iconul FollowUpNextWeekFlag.

public static NoteTask CreateFollowUpNextWeek()

Returns

NoteTask

Cuvânt cheie WL31_.NoteTask.

CreateFollowUpThisWeek()

Creează o nouă sarcină de notă cu iconul FollowUpThisWeekFlag.

public static NoteTask CreateFollowUpThisWeek()

Returns

NoteTask

Cuvânt cheie WL31_.NoteTask.

CreateFollowUpToday()

Creează o nouă sarcină de notă cu iconul FollowUpTodayFlag.

public static NoteTask CreateFollowUpToday()

Returns

NoteTask

Cuvânt cheie WL31_.NoteTask.

CreateFollowUpTomorrow()

Creează o nouă sarcină de notă cu iconul FollowUpTomorrowFlag.

public static NoteTask CreateFollowUpTomorrow()

Returns

NoteTask

Cuvânt cheie WL31_.NoteTask.

CreateNoFollowUpDate()

Creează o nouă sarcină de notă cu iconul NoFollowUpDateFlag.

public static NoteTask CreateNoFollowUpDate()

Returns

NoteTask

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

bool

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

bool

Cuvânt cheie: Boolean

GetHashCode()

Acesta servește ca o funcție hash pentru tipul.

public override int GetHashCode()

Returns

int

Cuvânt cheie: Int32.

SetOpen()

Stabiliți eticheta pentru a deschide statul.

public override void SetOpen()

 Română