Class NoteTask
اسم الفضاء : Aspose.Note تجميع: Aspose.Note.dll (25.4.0)
يمثل مهمة ملاحظة.
public sealed class NoteTask : CheckBox, ITag, IEquatable<notetask>
Inheritance
Implements
الأعضاء الموروثين
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 => e.Tags.Any(x => 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; }
قيمة الممتلكات
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 => e.Tags.Any(x => 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; }
قيمة الممتلكات
Methods
CreateCustomFollowUpDate(DateTime)
إنشاء مهمة ملاحظة جديدة مع أيقونة NoFollowUpDateFlag وتاريخ محدد.
public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)
Parameters
dueDate
DateTime
التاريخ الثاني .
Returns
_WL31 _ ملاحظة
CreateFollowUpNextWeek()
إنشاء مهمة ملاحظة جديدة باستخدام أيقونة FollowUpNextWeekFlag.
public static NoteTask CreateFollowUpNextWeek()
Returns
_WL31 _ ملاحظة
CreateFollowUpThisWeek()
إنشاء مهمة ملاحظة جديدة باستخدام أيقونة FollowUpThisWeekFlag.
public static NoteTask CreateFollowUpThisWeek()
Returns
_WL31 _ ملاحظة
CreateFollowUpToday()
إنشاء مهمة ملاحظة جديدة باستخدام أيقونة FollowUpTodayFlag.
public static NoteTask CreateFollowUpToday()
Returns
_WL31 _ ملاحظة
CreateFollowUpTomorrow()
إنشاء مهمة ملاحظة جديدة باستخدام أيقونة FollowUpTomorrowFlag.
public static NoteTask CreateFollowUpTomorrow()
Returns
_WL31 _ ملاحظة
CreateNoFollowUpDate()
إنشاء مهمة ملاحظة جديدة باستخدام أيقونة NoFollowUpDateFlag.
public static NoteTask CreateNoFollowUpDate()
Returns
_WL31 _ ملاحظة
Equals(الموضوع)
يحدد ما إذا كان الكائن المحدد يساوي الكائن الحالي.
public override bool Equals(object obj)
Parameters
obj
object
هذا الكائن .
Returns
النظام - بوليان
Equals(NoteTask)
يحدد ما إذا كان الكائن المحدد يساوي الكائن الحالي.
public bool Equals(NoteTask other)
Parameters
other
NoteTask
هذا الكائن .
Returns
النظام - بوليان
GetHashCode()
ويعمل كوظيفة هاتش للنوع.
public override int GetHashCode()
Returns
النظام .Int32.
SetOpen()
ضع العلامة إلى حالة مفتوحة.
public override void SetOpen()