Class NoteTask

Class NoteTask

Der Name: Aspose.Note Zusammensetzung: Aspose.Note.dll (25.4.0)

Es handelt sich um eine Note-Task.

public sealed class NoteTask : Aspose.Words.CheckBox, ITag, IEquatable<NoteTask>
    {
    }

Inheritance

object CheckBox NoteTask

Implements

ITag , IEquatable

Vererbte Mitglieder

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

Zeigt, wie man ein PDF erzeugt, das alle Seiten im Zusammenhang mit “Projekt A” enthält.

string dataDir = RunExamples.GetDataDir_Tags();
   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"));

Zeigt, wie man auf Details der Aufgaben von Outlook zugreifen kann.

string dataDir = RunExamples.GetDataDir_Tasks();
   Document oneFile = new Document(dataDir + "Aspose.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
       var tasks = richText.Tags.OfType<Notetask>();
       if (tasks.Any())
       {
           Console.WriteLine($"Task: {richText.Text}");
           Console.WriteLine($"    Completed Time: {tasks.First().CompletedTime}");
           Console.WriteLine($"    Create Time: {tasks.First().CreationTime}");
           Console.WriteLine($"    Due Date: {tasks.First().DueDate}");
           Console.WriteLine($"    Status: {tasks.First().Status}");
           Console.WriteLine($"    Icon: {tasks.First().Icon}");
       }
   }

Properties

DueDate

Gibt oder legt die angemessene Datum fest.

public DateTime DueDate
   {
      get;
      set;
   }

Eigentumswert

DateTime

Examples

Zeigt, wie man ein PDF erzeugt, das alle Seiten im Zusammenhang mit “Projekt A” enthält.

string dataDir = RunExamples.GetDataDir_Tags();
   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"));

Zeigt, wie man auf Details der Aufgaben von Outlook zugreifen kann.

string dataDir = RunExamples.GetDataDir_Tasks();
   Document oneFile = new Document(dataDir + "Aspose.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
       var tasks = richText.Tags.OfType<Notetask>();
       if (tasks.Any())
       {
           Console.WriteLine($"Task: {richText.Text}");
           foreach (var noteTask in tasks)
           {
               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}");
           }
       }
   }

Icon

Gibt oder setzt die Ikon.

public override TagIcon Icon
   {
      get;
   }

Eigentumswert

TagIcon

Methods

CreateCustomFollowUpDate (Datumzeit)

Erstellt eine neue Note-Task mit dem NoFollowUpDateFlag-Ikon und angegebenem Datum.

public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)
   {
      var noteTask = new NoteTask()
      {
         Title = "Follow up on " + dueDate.ToShortDateString(),
         Status = TaskStatus.NotStarted,
         StartDate = dueDate,
         DueDate = dueDate.AddDays(7),
         PercentComplete = 0
      };
      return noteTask;
   }

Parameters

dueDate DateTime

Das zweite Datum.

Returns

NoteTask

Die Aspose.Note und Notes.

VeröffentlichtFollowUpNextWeek()

Erstellen Sie eine neue Note-Task mit dem FollowUpNextWeekFlag-Ikon.

public static NoteTask CreateFollowUpNextWeek()
{
    var noteTask = new NoteTask
    {
        Status = TaskStatus.NotStarted,
        StartDate = DateTime.Today.AddDays(7),
        EndDate = DateTime.Today.AddDays(14),
        Title = "Follow Up Next Week",
        Body = "Follow up on the discussed items with the relevant parties."
    };
    return noteTask;
}

Returns

NoteTask

Die Aspose.Note und Notes.

ErstellenFollowUpThisWeek()

Erstellen Sie eine neue Note-Task mit dem FollowUpThisWeekFlag-Ikon.

public static NoteTask CreateFollowUpThisWeek()
{
    var noteTask = new NoteTask();
    noteTask.Title = "Follow Up This Week";
    noteTask.StartDate = DateTime.Today.AddDays(7);
    return noteTask;
}

Returns

NoteTask

Die Aspose.Note und Notes.

VeröffentlichtFollowUpToday()

Erstellen Sie eine neue Note-Task mit dem FollowUpTodayFlag-Icon.

public static NoteTask CreateFollowUpToday()
{
    var noteTask = new NoteTask
    {
        Status = TaskStatus.NotStarted,
        DueBy = DateTime.Now.AddDays(1),
        Subject = "Follow up on action items from today's meeting",
        Priority = TaskPriority.Medium
    };
    return noteTask;
}

Returns

NoteTask

Die Aspose.Note und Notes.

ErstellenFollowUpTomorrow()

Erstellen Sie eine neue Note-Task mit dem FollowUpTomorrowFlag-Icon.

public static NoteTask CreateFollowUpTomorrow()
   {
       var noteTask = new NoteTask();
       noteTask.CreationTime = DateTime.Now;
       noteTask.Status = TaskStatus.Incomplete;
       var dueDate = DateTime.Today.AddDays(1);
       noteTask.DueDate = dueDate;
       noteTask.Title = "Follow up tomorrow";
       noteTask.Content = "Follow up on this task tomorrow.";
   }

Returns

NoteTask

Die Aspose.Note und Notes.

CreateNoFollowUpDate()

Erstellt eine neue Note-Task mit dem NoFollowUpDateFlag-Ikon.

public static NoteTask CreateNoFollowUpDate()
   {
      var noteTask = new NoteTask();
      noteTask.FollowUpFlag = FollowUpFlag.None;
      return noteTask;
   }

Returns

NoteTask

Die Aspose.Note und Notes.

Objekte ( Object )

Bestimmt, ob das angegebenes Objekt gleich dem aktuellen Objekt ist.

public override bool Equals(object obj)
    {
    }
I've properly indented the code, added a new line after the opening brace and before the closing one for better readability.

Parameters

obj object

Das Objekt.

Returns

bool

Das System.Boolean

Auszeichnung (NoteTask)

Bestimmt, ob das angegebenes Objekt gleich dem aktuellen Objekt ist.

public bool Equals(NoteTask other)
   {
      return this.ID == other.ID;
   }

Parameters

other NoteTask

Das Objekt.

Returns

bool

Das System.Boolean

GetHashCode()

Es dient als Hash-Funktion für den Typ.

public override int GetHashCode()
   {
   }

Returns

int

Das System.Int32.

Eröffnung ()

Setzen Sie den Tag in den offenen Zustand.

public override void SetOpen()
   {
   }

 Deutsch