Class NoteTask
Tên không gian: Aspose.Note Tổng hợp: Aspose.Note.dll (25.4.0)
đại diện cho một nhiệm vụ ghi chú.
public sealed class NoteTask : CheckBox, ITag, IEquatable<notetask>
Inheritance
Implements
Thành viên thừa kế
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
Hiển thị cách tạo PDF chứa tất cả các trang liên quan đến ‘Project 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>
Hiển thị cách truy cập chi tiết các nhiệm vụ của 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
Nhận hoặc đặt ngày thích hợp.
public DateTime DueDate { get; set; }
Giá trị bất động sản
Examples
Hiển thị cách tạo PDF chứa tất cả các trang liên quan đến ‘Project 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>
Hiển thị cách truy cập chi tiết các nhiệm vụ của 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
Nhận hoặc đặt biểu tượng.
public override TagIcon Icon { get; }
Giá trị bất động sản
Methods
CreateCustomFollowUpDate(DateTime)
Tạo một nhiệm vụ ghi chú mới với biểu tượng NoFollowUpDateFlag và ngày đã được xác định.
public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)
Parameters
dueDate
DateTime
2 ngày hẹn.
Returns
Các _WL31 _.NoteTask.
CreateFollowUpNextWeek()
Tạo một nhiệm vụ ghi chú mới với biểu tượng FollowUpNextWeekFlag.
public static NoteTask CreateFollowUpNextWeek()
Returns
Các _WL31 _.NoteTask.
CreateFollowUpThisWeek()
Tạo một nhiệm vụ ghi chú mới với biểu tượng FollowUpThisWeekFlag.
public static NoteTask CreateFollowUpThisWeek()
Returns
Các _WL31 _.NoteTask.
CreateFollowUpToday()
Tạo một nhiệm vụ ghi chú mới với biểu tượng FollowUpTodayFlag.
public static NoteTask CreateFollowUpToday()
Returns
Các _WL31 _.NoteTask.
CreateFollowUpTomorrow()
Tạo một nhiệm vụ ghi chú mới với biểu tượng FollowUpTomorrowFlag.
public static NoteTask CreateFollowUpTomorrow()
Returns
Các _WL31 _.NoteTask.
CreateNoFollowUpDate()
Tạo một nhiệm vụ ghi chú mới với biểu tượng NoFollowUpDateFlag.
public static NoteTask CreateNoFollowUpDate()
Returns
Các _WL31 _.NoteTask.
Equals(đối tượng)
Nó xác định xem đối tượng được chỉ định có bằng đối tượng hiện tại hay không.
public override bool Equals(object obj)
Parameters
obj
object
đối tượng .
Returns
Hệ thống - Boolean
Equals(NoteTask)
Nó xác định xem đối tượng được chỉ định có bằng đối tượng hiện tại hay không.
public bool Equals(NoteTask other)
Parameters
other
NoteTask
đối tượng .
Returns
Hệ thống - Boolean
GetHashCode()
Nó phục vụ như một chức năng hash cho loại.
public override int GetHashCode()
Returns
Hệ thống.Int32.
SetOpen()
Đặt thẻ để mở trạng thái.
public override void SetOpen()