Class NoteTask

Class NoteTask

Το όνομα: Aspose.Note Συγκέντρωση: Aspose.Note.dll (25.4.0)

Αντιπροσωπεύει ένα καθήκον σημειώματος.

public sealed class NoteTask : CheckBox, ITag, IEquatable<notetask>

Inheritance

object CheckBox NoteTask

Implements

ITag , IEquatable

Κληρονομημένα μέλη

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

Δείχνει πώς να δημιουργήσετε ένα pdf που περιέχει όλες τις σελίδες που σχετίζονται με το “Project 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>

Δείχνει πώς να έχετε πρόσβαση στις λεπτομέρειες των καθηκόντων του 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

Αποκτά ή καθορίζει την κατάλληλη ημερομηνία.

public DateTime DueDate { get; set; }

Αξία ιδιοκτησίας

DateTime

Examples

Δείχνει πώς να δημιουργήσετε ένα pdf που περιέχει όλες τις σελίδες που σχετίζονται με το “Project 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>

Δείχνει πώς να έχετε πρόσβαση στις λεπτομέρειες των καθηκόντων του 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

Πάρτε ή τοποθετήστε το εικονίδιο.

public override TagIcon Icon { get; }

Αξία ιδιοκτησίας

TagIcon

Methods

CreateCustomFollowUpDate(DateTime)

Δημιουργεί μια νέα εργασία σημειώσεων με το εικονίδιο NoFollowUpDateFlag και την καθορισμένη ημερομηνία.

public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)

Parameters

dueDate DateTime

Η διπλή ημερομηνία.

Returns

NoteTask

Το Aspose.Note.NoteTask

CreateFollowUpNextWeek()

Δημιουργήστε μια νέα εργασία σημειώσεων με το εικονίδιο FollowUpNextWeekFlag.

public static NoteTask CreateFollowUpNextWeek()

Returns

NoteTask

Το Aspose.Note.NoteTask

CreateFollowUpThisWeek()

Δημιουργήστε μια νέα εργασία σημειώσεων με το εικονίδιο FollowUpThisWeekFlag.

public static NoteTask CreateFollowUpThisWeek()

Returns

NoteTask

Το Aspose.Note.NoteTask

CreateFollowUpToday()

Δημιουργήστε μια νέα εργασία σημειώσεων με το εικονίδιο FollowUpTodayFlag.

public static NoteTask CreateFollowUpToday()

Returns

NoteTask

Το Aspose.Note.NoteTask

CreateFollowUpTomorrow()

Δημιουργήστε μια νέα εργασία σημειώσεων με το εικονίδιο FollowUpTomorrowFlag.

public static NoteTask CreateFollowUpTomorrow()

Returns

NoteTask

Το Aspose.Note.NoteTask

CreateNoFollowUpDate()

Δημιουργεί μια νέα εργασία σημειώσεων με το εικονίδιο NoFollowUpDateFlag.

public static NoteTask CreateNoFollowUpDate()

Returns

NoteTask

Το Aspose.Note.NoteTask

Equals(αντικείμενο)

καθορίζει αν το συγκεκριμένο αντικείμενο είναι ίσο με το τρέχον αντικείμενο.

public override bool Equals(object obj)

Parameters

obj object

Το αντικείμενο .

Returns

bool

Το σύστημα.Boolean

Equals(NoteTask)

καθορίζει αν το συγκεκριμένο αντικείμενο είναι ίσο με το τρέχον αντικείμενο.

public bool Equals(NoteTask other)

Parameters

other NoteTask

Το αντικείμενο .

Returns

bool

Το σύστημα.Boolean

GetHashCode()

Λειτουργεί ως λειτουργία hash για τον τύπο.

public override int GetHashCode()

Returns

int

Το σύστημα.Int32.

SetOpen()

Εισάγετε την ετικέτα στο ανοιχτό κράτος.

public override void SetOpen()

 Ελληνικά