Class NoteTask

Class NoteTask

Il nome: Aspose.Note Assemblea: Aspose.Note.dll (25.4.0)

rappresenta un compito di nota.

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

Inheritance

object CheckBox NoteTask

Implements

ITag , IEquatable

I membri ereditari

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

Mostra come generare un pdf che contiene tutte le pagine correlate a ‘Progetto 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>

Mostra come accedere ai dettagli delle attività di 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

Riceve o stabilisce la data dovuta.

public DateTime DueDate { get; set; }

Valore di proprietà

DateTime

Examples

Mostra come generare un pdf che contiene tutte le pagine correlate a ‘Progetto 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>

Mostra come accedere ai dettagli delle attività di 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

Ottieni o metti l’icona.

public override TagIcon Icon { get; }

Valore di proprietà

TagIcon

Methods

CreateCustomFollowUpDate(DateTime)

Crea una nuova attività di nota con l’icona NoFollowUpDateFlag e la data indicata.

public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)

Parameters

dueDate DateTime

La due data.

Returns

NoteTask

Il Aspose.Note.NoteTask

CreateFollowUpNextWeek()

Crea una nuova attività di nota con l’icona FollowUpNextWeekFlag.

public static NoteTask CreateFollowUpNextWeek()

Returns

NoteTask

Il Aspose.Note.NoteTask

CreateFollowUpThisWeek()

Crea una nuova attività di nota con l’icona FollowUpThisWeekFlag.

public static NoteTask CreateFollowUpThisWeek()

Returns

NoteTask

Il Aspose.Note.NoteTask

CreateFollowUpToday()

Crea un nuovo compito con l’icona FollowUpTodayFlag.

public static NoteTask CreateFollowUpToday()

Returns

NoteTask

Il Aspose.Note.NoteTask

CreateFollowUpTomorrow()

Crea una nuova attività di nota con l’icona FollowUpTomorrowFlag.

public static NoteTask CreateFollowUpTomorrow()

Returns

NoteTask

Il Aspose.Note.NoteTask

CreateNoFollowUpDate()

Crea una nuova attività di nota con l’icona NoFollowUpDateFlag.

public static NoteTask CreateNoFollowUpDate()

Returns

NoteTask

Il Aspose.Note.NoteTask

Equals(oggetto)

Determinare se l’oggetto specificato è uguale all’oggetto corrente.

public override bool Equals(object obj)

Parameters

obj object

L’oggetto è

Returns

bool

Il sistema.Boolean

Equals(NoteTask)

Determinare se l’oggetto specificato è uguale all’oggetto corrente.

public bool Equals(NoteTask other)

Parameters

other NoteTask

L’oggetto è

Returns

bool

Il sistema.Boolean

GetHashCode()

Servisce come funzione hash per il tipo.

public override int GetHashCode()

Returns

int

Il sistema.Int32.

SetOpen()

Inserisci il tag allo stato aperto.

public override void SetOpen()

 Italiano