Class NoteTask
İsim alanı : Aspose.Note Toplama: Aspose.Note.dll (25.4.0)
Bir not görevini temsil eder.
public sealed class NoteTask : CheckBox, ITag, IEquatable<notetask>
Inheritance
Implements
mirasçı üyeleri
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
“Project A” ile ilgili tüm sayfaları içeren bir pdf nasıl oluşturulur gösterir.
// 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’un görevlerinin ayrıntılarına nasıl erişeceğinizi gösterir.
// 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
Doğru tarih alın veya belirlenir.
public DateTime DueDate { get; set; }
Mülkiyet Değer
Examples
“Project A” ile ilgili tüm sayfaları içeren bir pdf nasıl oluşturulur gösterir.
// 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’un görevlerinin ayrıntılarına nasıl erişeceğinizi gösterir.
// 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
İkonu alın veya ayarlayın.
public override TagIcon Icon { get; }
Mülkiyet Değer
Methods
CreateCustomFollowUpDate(DateTime)
NoFollowUpDateFlag simgesi ve belirtilen tarih ile yeni bir not görevi oluşturur.
public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)
Parameters
dueDate
DateTime
İKİNCİ BİLGİ.
Returns
Bu ilanı beğen Eki 31 Notes.
CreateFollowUpNextWeek()
FollowUpNextWeekFlag simgesiyle yeni bir not görevi oluşturun.
public static NoteTask CreateFollowUpNextWeek()
Returns
Bu ilanı beğen Eki 31 Notes.
CreateFollowUpThisWeek()
FollowUpThisWeekFlag simgesiyle yeni bir not görevi oluşturun.
public static NoteTask CreateFollowUpThisWeek()
Returns
Bu ilanı beğen Eki 31 Notes.
CreateFollowUpToday()
FollowUpTodayFlag simgesiyle yeni bir not görevi oluşturun.
public static NoteTask CreateFollowUpToday()
Returns
Bu ilanı beğen Eki 31 Notes.
CreateFollowUpTomorrow()
FollowUpTomorrowFlag simgesiyle yeni bir not görevi oluşturun.
public static NoteTask CreateFollowUpTomorrow()
Returns
Bu ilanı beğen Eki 31 Notes.
CreateNoFollowUpDate()
NoFollowUpDateFlag simgesiyle yeni bir not görevi oluşturun.
public static NoteTask CreateNoFollowUpDate()
Returns
Bu ilanı beğen Eki 31 Notes.
Equals(nesne)
Belirlenen nesnenin mevcut nesneye eşit olup olmadığını belirler.
public override bool Equals(object obj)
Parameters
obj
object
Bu nesne.
Returns
Bu sistem boolean.
Equals(NoteTask)
Belirlenen nesnenin mevcut nesneye eşit olup olmadığını belirler.
public bool Equals(NoteTask other)
Parameters
other
NoteTask
Bu nesne.
Returns
Bu sistem boolean.
GetHashCode()
Tip için bir hash fonksiyonu olarak hizmet eder.
public override int GetHashCode()
Returns
Sistem.Int32 ile ilgili bilgiler.
SetOpen()
Açık devlet için etiketi ayarlayın.
public override void SetOpen()