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
显示如何创建包含与“项目A”相关的所有页面的PDF。
// 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
显示如何创建包含与“项目A”相关的所有页面的PDF。
// 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_.NoteTask
CreateFollowUpNextWeek()
创建一个新的笔记任务,使用 FollowUpNextWeekFlag 图标。
public static NoteTask CreateFollowUpNextWeek()
Returns
此分類上一篇: WL31_.NoteTask
CreateFollowUpThisWeek()
创建一个新的笔记任务,使用 FollowUpThisWeekFlag 图标。
public static NoteTask CreateFollowUpThisWeek()
Returns
此分類上一篇: WL31_.NoteTask
CreateFollowUpToday()
创建一个新的笔记任务,使用 FollowUpTodayFlag 图标。
public static NoteTask CreateFollowUpToday()
Returns
此分類上一篇: WL31_.NoteTask
CreateFollowUpTomorrow()
创建一个新的笔记任务,使用 FollowUpTomorrowFlag 图标。
public static NoteTask CreateFollowUpTomorrow()
Returns
此分類上一篇: WL31_.NoteTask
CreateNoFollowUpDate()
创建一个新的笔记任务,使用 NoFollowUpDateFlag 图标。
public static NoteTask CreateNoFollowUpDate()
Returns
此分類上一篇: WL31_.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()