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 يحتوي على جميع الصفحات المرتبطة بـ “مشروع 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 يحتوي على جميع الصفحات المرتبطة بـ “مشروع 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

_WL31 _ ملاحظة

CreateFollowUpNextWeek()

إنشاء مهمة ملاحظة جديدة باستخدام أيقونة FollowUpNextWeekFlag.

public static NoteTask CreateFollowUpNextWeek()

Returns

NoteTask

_WL31 _ ملاحظة

CreateFollowUpThisWeek()

إنشاء مهمة ملاحظة جديدة باستخدام أيقونة FollowUpThisWeekFlag.

public static NoteTask CreateFollowUpThisWeek()

Returns

NoteTask

_WL31 _ ملاحظة

CreateFollowUpToday()

إنشاء مهمة ملاحظة جديدة باستخدام أيقونة FollowUpTodayFlag.

public static NoteTask CreateFollowUpToday()

Returns

NoteTask

_WL31 _ ملاحظة

CreateFollowUpTomorrow()

إنشاء مهمة ملاحظة جديدة باستخدام أيقونة FollowUpTomorrowFlag.

public static NoteTask CreateFollowUpTomorrow()

Returns

NoteTask

_WL31 _ ملاحظة

CreateNoFollowUpDate()

إنشاء مهمة ملاحظة جديدة باستخدام أيقونة NoFollowUpDateFlag.

public static NoteTask CreateNoFollowUpDate()

Returns

NoteTask

_WL31 _ ملاحظة

Equals(الموضوع)

يحدد ما إذا كان الكائن المحدد يساوي الكائن الحالي.

public override bool Equals(object obj)

Parameters

obj object

هذا الكائن .

Returns

bool

النظام - بوليان

Equals(NoteTask)

يحدد ما إذا كان الكائن المحدد يساوي الكائن الحالي.

public bool Equals(NoteTask other)

Parameters

other NoteTask

هذا الكائن .

Returns

bool

النظام - بوليان

GetHashCode()

ويعمل كوظيفة هاتش للنوع.

public override int GetHashCode()

Returns

int

النظام .Int32.

SetOpen()

ضع العلامة إلى حالة مفتوحة.

public override void SetOpen()

 عربي