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
Aspose.Note.NoteTask หมายเหตุ
CreateFollowUpNextWeek()
สร้างงานบันทึกใหม่ด้วยไอคอน FollowUpNextWeekFlag
public static NoteTask CreateFollowUpNextWeek()
Returns
Aspose.Note.NoteTask หมายเหตุ
CreateFollowUpThisWeek()
สร้างงานบันทึกใหม่ด้วยไอคอน FollowUpThisWeekFlag
public static NoteTask CreateFollowUpThisWeek()
Returns
Aspose.Note.NoteTask หมายเหตุ
CreateFollowUpToday()
สร้างงานบันทึกใหม่ด้วยไอคอน FollowUpTodayFlag
public static NoteTask CreateFollowUpToday()
Returns
Aspose.Note.NoteTask หมายเหตุ
CreateFollowUpTomorrow()
สร้างงานบันทึกใหม่ด้วยไอคอน FollowUpTomorrowFlag
public static NoteTask CreateFollowUpTomorrow()
Returns
Aspose.Note.NoteTask หมายเหตุ
CreateNoFollowUpDate()
สร้างงานบันทึกใหม่ด้วยไอคอน NoFollowUpDateFlag
public static NoteTask CreateNoFollowUpDate()
Returns
Aspose.Note.NoteTask หมายเหตุ
Equals(วัตถุ)
จะกําหนดว่าวัตถุที่ระบุเท่ากับวัตถุปัจจุบันหรือไม่
public override bool Equals(object obj)
Parameters
obj
object
วัตถุ
Returns
ระบบ Boolean
Equals(NoteTask)
จะกําหนดว่าวัตถุที่ระบุเท่ากับวัตถุปัจจุบันหรือไม่
public bool Equals(NoteTask other)
Parameters
other
NoteTask
วัตถุ
Returns
ระบบ Boolean
GetHashCode()
ใช้เป็นฟังก์ชั่น hash สําหรับประเภท
public override int GetHashCode()
Returns
ระบบ.Int32
SetOpen()
ติดตั้งแท็กเพื่อเปิดสถานะ
public override void SetOpen()