Class NoteTask
Nama dari : Aspose.Note Perhitungan: Aspose.Note.dll (25.4.0)
Menampilkan tugas catatan.
public sealed class NoteTask : CheckBox, ITag, IEquatable<notetask>
Inheritance
Implements
anggota yang diwarisi
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
Menunjukkan cara menghasilkan PDF yang berisi semua halaman yang berkaitan dengan ‘Proyek 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>
Menunjukkan cara mengakses rincian tugas 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
Dapatkan atau menetapkan tanggal yang tepat.
public DateTime DueDate { get; set; }
Nilai Properti
Examples
Menunjukkan cara menghasilkan PDF yang berisi semua halaman yang berkaitan dengan ‘Proyek 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>
Menunjukkan cara mengakses rincian tugas 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
Dapatkan atau menetapkan ikon.
public override TagIcon Icon { get; }
Nilai Properti
Methods
CreateCustomFollowUpDate(DateTime)
Mencipta tugas catatan baru dengan ikon NoFollowUpDateFlag dan tanggal yang ditetapkan.
public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)
Parameters
dueDate
DateTime
Kedua tanggal tersebut.
Returns
Hal ini dikarenakan Aspose.Note.NoteTask.
CreateFollowUpNextWeek()
Mencipta tugas catatan baru dengan ikon FollowUpNextWeekFlag.
public static NoteTask CreateFollowUpNextWeek()
Returns
Hal ini dikarenakan Aspose.Note.NoteTask.
CreateFollowUpThisWeek()
Mencipta tugas catatan baru dengan ikon FollowUpThisWeekFlag.
public static NoteTask CreateFollowUpThisWeek()
Returns
Hal ini dikarenakan Aspose.Note.NoteTask.
CreateFollowUpToday()
Mencipta tugas catatan baru dengan ikon FollowUpTodayFlag.
public static NoteTask CreateFollowUpToday()
Returns
Hal ini dikarenakan Aspose.Note.NoteTask.
CreateFollowUpTomorrow()
Mencipta tugas catatan baru dengan ikon FollowUpTomorrowFlag.
public static NoteTask CreateFollowUpTomorrow()
Returns
Hal ini dikarenakan Aspose.Note.NoteTask.
CreateNoFollowUpDate()
Mencipta tugas catatan baru dengan ikon NoFollowUpDateFlag.
public static NoteTask CreateNoFollowUpDate()
Returns
Hal ini dikarenakan Aspose.Note.NoteTask.
Equals(objek)
Menentukan apakah objek yang ditentukan sama dengan objek saat ini.
public override bool Equals(object obj)
Parameters
obj
object
dan objeknya.
Returns
Sistem ini adalah Boolean.
Equals(NoteTask)
Menentukan apakah objek yang ditentukan sama dengan objek saat ini.
public bool Equals(NoteTask other)
Parameters
other
NoteTask
dan objeknya.
Returns
Sistem ini adalah Boolean.
GetHashCode()
Ini berfungsi sebagai fungsi hash untuk jenis tersebut.
public override int GetHashCode()
Returns
Kegiatan ini dilakukan dengan sistem.Int32.
SetOpen()
Menetapkan tag untuk negara terbuka.
public override void SetOpen()