Class NoteTask
Nome do espaço: Aspose.Note Assembleia: Aspose.Note.dll (25.4.0)
Representa uma tarefa de nota.
public sealed class NoteTask : CheckBox, ITag, IEquatable<notetask>
Inheritance
Implements
Membros herdados
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
Mostra como gerar um pdf que contém todas as páginas relacionadas ao ‘Projeto 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>
Mostra como acessar os detalhes das tarefas do 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
Obter ou definir a data apropriada.
public DateTime DueDate { get; set; }
Valor da propriedade
Examples
Mostra como gerar um pdf que contém todas as páginas relacionadas ao ‘Projeto 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>
Mostra como acessar os detalhes das tarefas do 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
Receba ou coloca o ícone.
public override TagIcon Icon { get; }
Valor da propriedade
Methods
CreateCustomFollowUpDate(DateTime)
Crie uma nova tarefa de nota com o ícone NoFollowUpDateFlag e a data especificada.
public static NoteTask CreateCustomFollowUpDate(DateTime dueDate)
Parameters
dueDate
DateTime
A dupla data.
Returns
O Aspose.Note .NoteTask.
CreateFollowUpNextWeek()
Crie uma nova tarefa com o ícone FollowUpNextWeekFlag.
public static NoteTask CreateFollowUpNextWeek()
Returns
O Aspose.Note .NoteTask.
CreateFollowUpThisWeek()
Crie uma nova tarefa com o ícone FollowUpThisWeekFlag.
public static NoteTask CreateFollowUpThisWeek()
Returns
O Aspose.Note .NoteTask.
CreateFollowUpToday()
Crie uma nova tarefa com o ícone FollowUpTodayFlag.
public static NoteTask CreateFollowUpToday()
Returns
O Aspose.Note .NoteTask.
CreateFollowUpTomorrow()
Crie uma nova tarefa com o ícone FollowUpTomorrowFlag.
public static NoteTask CreateFollowUpTomorrow()
Returns
O Aspose.Note .NoteTask.
CreateNoFollowUpDate()
Crie uma nova tarefa com o ícone NoFollowUpDateFlag.
public static NoteTask CreateNoFollowUpDate()
Returns
O Aspose.Note .NoteTask.
Equals(Objeto)
Determina se o objeto especificado é igual ao objeto atual.
public override bool Equals(object obj)
Parameters
obj
object
O objeto .
Returns
É o sistema.Boolean.
Equals(NoteTask)
Determina se o objeto especificado é igual ao objeto atual.
public bool Equals(NoteTask other)
Parameters
other
NoteTask
O objeto .
Returns
É o sistema.Boolean.
GetHashCode()
Ele serve como uma função de hash para o tipo.
public override int GetHashCode()
Returns
O sistema.Int32.
SetOpen()
Coloque a etiqueta para o estado aberto.
public override void SetOpen()