Class NoteTask

Class NoteTask

Nazwa przestrzeń: Aspose.Note Zgromadzenie: Aspose.Note.dll (25.4.0)

Przedstawia zadanie notowania.

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

Inheritance

object CheckBox NoteTask

Implements

ITag , IEquatable

Dziedziczeni członkowie

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

Pokaż, jak tworzyć plik PDF zawierający wszystkie strony powiązane z “Projekt 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>

Pokaż, jak uzyskać dostęp do szczegółów zadań 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

Zostaw lub ustaw odpowiedni termin.

public DateTime DueDate { get; set; }

Wartość nieruchomości

DateTime

Examples

Pokaż, jak tworzyć plik PDF zawierający wszystkie strony powiązane z “Projekt 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>

Pokaż, jak uzyskać dostęp do szczegółów zadań 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

Zostaw lub ustaw ikonę.

public override TagIcon Icon { get; }

Wartość nieruchomości

TagIcon

Methods

CreateCustomFollowUpDate(DateTime)

Tworzenie nowej funkcji notyfikacyjnej za pomocą ikony NoFollowUpDateFlag i określonej daty.

public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)

Parameters

dueDate DateTime

Dwa dni temu.

Returns

NoteTask

Zestawienie _WL31 _.NoteTask.

CreateFollowUpNextWeek()

Tworzenie nowej funkcji notowania za pomocą ikony FollowUpNextWeekFlag.

public static NoteTask CreateFollowUpNextWeek()

Returns

NoteTask

Zestawienie _WL31 _.NoteTask.

CreateFollowUpThisWeek()

Tworzenie nowej funkcji notowania za pomocą ikony FollowUpThisWeekFlag.

public static NoteTask CreateFollowUpThisWeek()

Returns

NoteTask

Zestawienie _WL31 _.NoteTask.

CreateFollowUpToday()

Stwórz nową pracę za pomocą ikony FollowUpTodayFlag.

public static NoteTask CreateFollowUpToday()

Returns

NoteTask

Zestawienie _WL31 _.NoteTask.

CreateFollowUpTomorrow()

Tworzenie nowej funkcji notowania za pomocą ikony FollowUpTomorrowFlag.

public static NoteTask CreateFollowUpTomorrow()

Returns

NoteTask

Zestawienie _WL31 _.NoteTask.

CreateNoFollowUpDate()

Tworzenie nowej funkcji notowania za pomocą ikony NoFollowUpDateFlag.

public static NoteTask CreateNoFollowUpDate()

Returns

NoteTask

Zestawienie _WL31 _.NoteTask.

Equals(Obiekt)

Określa, czy określony obiekt jest równy bieżącemu przedmiotowi.

public override bool Equals(object obj)

Parameters

obj object

z obiektem .

Returns

bool

To jest system. boolean.

Equals(NoteTask)

Określa, czy określony obiekt jest równy bieżącemu przedmiotowi.

public bool Equals(NoteTask other)

Parameters

other NoteTask

z obiektem .

Returns

bool

To jest system. boolean.

GetHashCode()

Służy jako funkcja hash dla tego typu.

public override int GetHashCode()

Returns

int

Występuje w systemie Int32.

SetOpen()

Ustaw etykietę do otwartego stanu.

public override void SetOpen()

 Polski