Class NoteTask
ja nimityö: Aspose.Note Kokoelma: Aspose.Note.dll (25.4.0)
Se edustaa huomautustehtävää.
public sealed class NoteTask : CheckBox, ITag, IEquatable<notetask>
Inheritance
Implements
Perintöjäsenet
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
Näytä, miten tuottaa pdf, joka sisältää kaikki sivut, jotka liittyvät ‘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>
Näytä, miten pääset Outlookin tehtävien yksityiskohtiin.
// 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
Antaa tai asettaa tarvittava päivämäärä.
public DateTime DueDate { get; set; }
Omistuksen arvo
Examples
Näytä, miten tuottaa pdf, joka sisältää kaikki sivut, jotka liittyvät ‘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>
Näytä, miten pääset Outlookin tehtävien yksityiskohtiin.
// 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
Valitse tai asettaa ikoni.
public override TagIcon Icon { get; }
Omistuksen arvo
Methods
CreateCustomFollowUpDate(DateTime)
Luo uusi huomautustehtävä NoFollowUpDateFlag -ikonilla ja määritellyllä päivämäärällä.
public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)
Parameters
dueDate
DateTime
Kaksinkertainen päivämäärä.
Returns
Se on Aspose.Note.NoteTask.
CreateFollowUpNextWeek()
Luo uusi huomautustehtävä FollowUpNextWeekFlag -ikonilla.
public static NoteTask CreateFollowUpNextWeek()
Returns
Se on Aspose.Note.NoteTask.
CreateFollowUpThisWeek()
Luo uusi huomautustehtävä FollowUpThisWeekFlag -ikonilla.
public static NoteTask CreateFollowUpThisWeek()
Returns
Se on Aspose.Note.NoteTask.
CreateFollowUpToday()
Luo uusi huomautustehtävä FollowUpTodayFlag -kuvan avulla.
public static NoteTask CreateFollowUpToday()
Returns
Se on Aspose.Note.NoteTask.
CreateFollowUpTomorrow()
Luo uusi huomautustehtävä FollowUpTomorrowFlag -ikonilla.
public static NoteTask CreateFollowUpTomorrow()
Returns
Se on Aspose.Note.NoteTask.
CreateNoFollowUpDate()
Luo uusi huomautustehtävä NoFollowUpDateFlag -ikonilla.
public static NoteTask CreateNoFollowUpDate()
Returns
Se on Aspose.Note.NoteTask.
Equals(Objekti)
Se määrittää, onko määritetty objekti samanlainen kuin nykyinen objekti.
public override bool Equals(object obj)
Parameters
obj
object
ja objekti.
Returns
Järjestelmä on Boolean.
Equals(NoteTask)
Se määrittää, onko määritetty objekti samanlainen kuin nykyinen objekti.
public bool Equals(NoteTask other)
Parameters
other
NoteTask
ja objekti.
Returns
Järjestelmä on Boolean.
GetHashCode()
Se on hash-toiminto tyypille.
public override int GetHashCode()
Returns
Järjestelmä.Int32
SetOpen()
Aseta merkki avoimeen valtioon.
public override void SetOpen()