Interface ITag

Interface ITag

De naam: Aspose.Note Verzameling: Aspose.Note.dll (25.4.0)

De interface voor tags van alle soorten.

public interface ITag
   {
      string Text { get; set; }
      int Index { get; }
   }

Examples

Zie hoe u een pdf kunt genereren die alle pagina’s met betrekking tot ‘Project A’ bevat.

string dataDir = RunExamples.GetDataDir_Tags();
   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"));

Toon hoe u alle items in de checkbox met betrekking tot ‘Project C’ kunt voltooien.

string dataDir = RunExamples.GetDataDir_Tags();
   var oneFile = new Aspose.Words.Document(Path.Combine(dataDir, "ProjectNotes.one"));
   foreach (var node in oneFile.GetChildNodes<Aspose.Words.ITaggable>())
   {
       foreach (var checkBox in node.Tags.OfType<Aspose.Words.Checkbox>())
       {
           if (checkBox.Label.Contains("Project C") && !checkBox.Checked)
           {
               checkBox.SetCompleted();
           }
       }
   }
   oneFile.Save(Path.Combine(dataDir, ClosedProjectCNotesFileName));

Toon hoe u alle items in de checkbox met betrekking tot ‘Project C’ kunt openen.

string dataDir = RunExamples.GetDataDir_Tags();
   var oneFile = new Document(Path.Combine(dataDir, ClosedProjectCNotesFileName));
   foreach (var node in oneFile.GetChildNodes<Tag>())
   {
       foreach (var checkBox in node.Tags.OfType<Checkbox>())
       {
           if (checkBox.Label.Contains("Project C") && checkBox.Checked)
           {
               checkBox.SetOpen();
           }
       }
   }
   oneFile.Save(Path.Combine(dataDir, "ProjectNoteWithOpenProjectC.one"));

Geeft hoe u een pdf genereren met pagina’s met items die worden gemarkeerd door onvolledige checkboxes en gemaakt in de afgelopen week.

string dataDir = RunExamples.GetDataDir_Tags();
   var oneFile = new Document(Path.Combine(dataDir, "TagFile.one"));
   var report = new Document();
   foreach (var page in oneFile)
   {
      if (page.GetChildNodes<ITaggable>().Any(e => e.Tags.OfType<Checkbox>().Any(x => !x.Checked && DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)) <= x.CreationTime)))
      {
         report.AppendChildLast(page.Clone());
      }
   }
   report.Save(Path.Combine(dataDir, "IncompleteLastWeekReport.pdf"));

Zie hoe u een pdf genereren met pagina’s met Outlook onvolledige taken te voltooien deze week.

string dataDir = RunExamples.GetDataDir_Tags();
   var oneFile = new Document(Path.Combine(dataDir, "TagFile.one"));
   var report = new Document();
   var endOfWeek = DateTime.Today.AddDays(5 - (int)DateTime.Today.DayOfWeek);
   foreach (var page in oneFile)
   {
       if (page.GetChildNodes<ITaggable>().Any(e => e.Tags.OfType<NoteTask>().Any(x => !x.Checked && DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)) <= x.CreationTime && x.DueDate <= endOfWeek)))
       {
           report.AppendChildLast(page.Clone());
       }
   }
   report.Save(Path.Combine(dataDir, "IncompleteTasksForThisWeekReport.pdf"));

Toon hoe u toegang krijgt tot details van de taken van Outlook.

string dataDir = RunExamples.GetDataDir_Tasks();
   Document oneFile = new Document(dataDir + "Aspose.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
       var tasks = richText.Tags.OfType<Notetask>();
       if (tasks.Any())
       {
           Console.WriteLine($"Task: {richText.Text}");
           foreach (NoteTask noteTask in tasks)
           {
               Console.WriteLine($"\tCompleted Time: {noteTask.CompletedTime}");
               Console.WriteLine($"\tCreate Time: {noteTask.CreationTime}");
               Console.WriteLine($"\tDue Date: {noteTask.DueDate}");
               Console.WriteLine($"\tStatus: {noteTask.Status}");
               Console.WriteLine($"\tIcon: {noteTask.Icon}");
           }
       }
   }

Toon hoe u toegang krijgt tot de details van een tag.

string dataDir = RunExamples.GetDataDir_Tags();
   Document oneFile = new Document(dataDir + "TagFile.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
       var tags = richText.Tags.OfType<NoteTag>();
       if (tags.Any())
       {
           Console.WriteLine($"Text: {richText.Text}");
           foreach (var noteTag in tags)
           {
               Console.WriteLine($"    Completed Time: {noteTag.CompletedTime}");
               Console.WriteLine($"    Create Time: {noteTag.CreationTime}");
               Console.WriteLine($"    Font Color: {noteTag.FontColor}");
               Console.WriteLine($"    Status: {noteTag.Status}");
               Console.WriteLine($"    Label: {noteTag.Label}");
               Console.WriteLine($"    Icon: {noteTag.Icon}");
               Console.WriteLine($"    High Light: {noteTag.Highlight}");
           }
       }
   }

Properties

CompletedTime

Geeft of stelt de voltooide tijd.

DateTime? CompletedTime
   {
      get
      {
      }
   }

Eigendomswaarde

DateTime ?

Examples

Toon hoe u toegang krijgt tot details van de taken van Outlook.

string dataDir = RunExamples.GetDataDir_Tasks();
   Document oneFile = new Document(dataDir + "Aspose.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
       var tasks = richText.Tags.OfType<Notetask>();
       if (tasks.Any())
       {
           Console.WriteLine($"Task: {richText.Text}");
           foreach (var noteTask in tasks)
           {
               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}");
           }
       }
   }

Toon hoe u toegang krijgt tot de details van een tag.

string dataDir = RunExamples.GetDataDir_Tags();
   Document oneFile = new Document(dataDir + "TagFile.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
       var tags = richText.Tags.OfType<Notetag>();
       if (tags.Any())
       {
           Console.WriteLine($"Text: {richText.Text}");
           foreach (var noteTag in tags)
           {
               Console.WriteLine($"    Completed Time: {noteTag.CompletedTime}");
               Console.WriteLine($"    Create Time: {noteTag.CreationTime}");
               Console.WriteLine($"    Font Color: {noteTag.FontColor}");
               Console.WriteLine($"    Status: {noteTag.Status}");
               Console.WriteLine($"    Label: {noteTag.Label}");
               Console.WriteLine($"    Icon: {noteTag.Icon}");
               Console.WriteLine($"    High Light: {noteTag.Highlight}");
           }
       }
   }

CreationTime

Geeft of stelt de schepping tijd.

DateTime CreationTime
   {
      get;
      set;
   }

Eigendomswaarde

DateTime

Examples

Zie hoe u een pdf kunt genereren die alle pagina’s met betrekking tot ‘Project A’ bevat.

string dataDir = RunExamples.GetDataDir_Tags();
   var oneFile = new Document(Path.Combine(dataDir, "ProjectNotes.one"));
   var report = new Document();
   foreach (var page in oneFile)
   {
       if (page.GetChildNodes<Taggable>().Any(e => e.Tags.Any(x => x.Label.Contains("Project A"))))
       {
           report.AppendChildLast(page.Clone());
       }
   }
   report.Save(Path.Combine(dataDir, "ProjectA_Report.pdf"));

Geeft hoe u een pdf genereren met pagina’s met items die worden gemarkeerd door onvolledige checkboxes en gemaakt in de afgelopen week.

string dataDir = RunExamples.GetDataDir_Tags();
   var oneFile = new Aspose.Words.Document(Path.Combine(dataDir, "TagFile.one"));
   var report = new Aspose.Words.Document();
   foreach (var page in oneFile.GetChildNodes<Aspose.Words.ITaggable>())
   {
       if (page.GetChildNodes<Aspose.Words.Checkbox>().Any(e => !e.Checked && DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)) <= e.CreationTime))
       {
           report.AppendChildLast(page.Clone());
       }
   }
   report.Save(Path.Combine(dataDir, "IncompleteLastWeekReport.pdf"));

Zie hoe u een pdf genereren met pagina’s met Outlook onvolledige taken te voltooien deze week.

string dataDir = RunExamples.GetDataDir_Tags();
   var oneFile = new Document(Path.Combine(dataDir, "TagFile.one"));
   var report = new Document();
   var endOfWeek = DateTime.Today.AddDays(5 - (int)DateTime.Today.DayOfWeek);
   foreach (var page in oneFile)
   {
       if (page.GetChildNodes<Taggable>().Any(e => e.Tags.OfType<NoteTask>().Any(x => !x.Checked && DateTime.UtcNow.Subtract(TimeSpan.FromDays(7)) <= x.CreationTime && x.DueDate <= endOfWeek)))
       {
           report.AppendChildLast(page.Clone());
       }
   }
   report.Save(Path.Combine(dataDir, "IncompleteTasksForThisWeekReport.pdf"));

Toon hoe u toegang krijgt tot details van de taken van Outlook.

string dataDir = RunExamples.GetDataDir_Tasks();
   Document oneFile = new Document(dataDir + "Aspose.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
       var tasks = richText.Tags.OfType<Notetask>();
       if (tasks.Any())
       {
           Console.WriteLine($"Task: {richText.Text}");
           foreach (var noteTask in tasks)
           {
               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}");
           }
       }
   }

Toon hoe u toegang krijgt tot de details van een tag.

string dataDir = RunExamples.GetDataDir_Tags();
   Document oneFile = new Document(dataDir + "TagFile.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
      var tags = richText.Tags.OfType<NoteTag>();
      if (tags.Any())
      {
         Console.WriteLine($"Text: {richText.Text}");
         foreach (var noteTag in tags)
         {
            Console.WriteLine($"    Completed Time: {noteTag.CompletedTime}");
            Console.WriteLine($"    Create Time: {noteTag.CreationTime}");
            Console.WriteLine($"    Font Color: {noteTag.FontColor}");
            Console.WriteLine($"    Status: {noteTag.Status}");
            Console.WriteLine($"    Label: {noteTag.Label}");
            Console.WriteLine($"    Icon: {noteTag.Icon}");
            Console.WriteLine($"    High Light: {noteTag.Highlight}");
         }
      }
   }

Icon

Geeft of zet de icoon.

TagIcon get TagIcon()
   {
      get;
   }

Eigendomswaarde

TagIcon

Examples

Toon hoe u toegang krijgt tot details van de taken van Outlook.

string dataDir = RunExamples.GetDataDir_Tasks();
   Document oneFile = new Document(dataDir + "Aspose.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
       var tasks = richText.Tags.OfType<Notetask>();
       if (tasks.Any())
       {
           Console.WriteLine($"Task: {richText.Text}");
           foreach (var noteTask in tasks)
           {
               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}");
           }
       }
   }

Toon hoe u toegang krijgt tot de details van een tag.

string dataDir = RunExamples.GetDataDir_Tags();
   Document oneFile = new Document(dataDir + "TagFile.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
       var tags = richText.Tags.OfType<Notetag>();
       if (tags.Any())
       {
           Console.WriteLine($"Text: {richText.Text}");
           foreach (var noteTag in tags)
           {
               Console.WriteLine($"    Completed Time: {noteTag.CompletedTime}");
               Console.WriteLine($"    Create Time: {noteTag.CreationTime}");
               Console.WriteLine($"    Font Color: {noteTag.FontColor}");
               Console.WriteLine($"    Status: {noteTag.Status}");
               Console.WriteLine($"    Label: {noteTag.Label}");
               Console.WriteLine($"    Icon: {noteTag.Icon}");
               Console.WriteLine($"    High Light: {noteTag.Highlight}");
           }
       }
   }

Label

Geeft de label tekst.

string Label
   {
      get;
   }

Eigendomswaarde

string

Examples

Toon hoe u alle items in de checkbox met betrekking tot ‘Project C’ kunt voltooien.

string dataDir = RunExamples.GetDataDir_Tags();
   var oneFile = new Document(Path.Combine(dataDir, "ProjectNotes.one"));
   foreach (var node in oneFile.GetChildNodes<ITaggable>())
   {
       foreach (var checkBox in node.Tags.OfType<Checkbox>())
       {
           if (checkBox.Label.Contains("Project C") && !checkBox.Checked)
           {
               checkBox.SetCompleted();
           }
       }
   }
   oneFile.Save(Path.Combine(dataDir, ClosedProjectCNotesFileName));

Toon hoe u alle items in de checkbox met betrekking tot ‘Project C’ kunt openen.

string dataDir = RunExamples.GetDataDir_Tags();
   var oneFile = new Aspose.Words.Document(Path.Combine(dataDir, ClosedProjectCNotesFileName));
   foreach (var node in oneFile.GetChildNodes<Aspose.Html.ITaggable>())
   {
       foreach (var checkBox in node.Tags.OfType<Aspose.Words.Checkbox>())
       {
           if (checkBox.Label.Contains("Project C") && checkBox.Checked)
           {
               checkBox.SetOpen();
           }
       }
   }
   oneFile.Save(Path.Combine(dataDir, "ProjectNoteWithOpenProjectC.one"));

Toon hoe u toegang krijgt tot de details van een tag.

string dataDir = RunExamples.GetDataDir_Tags();
   Document oneFile = new Document(dataDir + "TagFile.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
      var tags = richText.Tags.OfType<Notetag>();
      if (tags.Any())
      {
         Console.WriteLine($"Text: {richText.Text}");
         foreach (var noteTag in tags)
         {
            Console.WriteLine($"    Completed Time: {noteTag.CompletedTime}");
            Console.WriteLine($"    Create Time: {noteTag.CreationTime}");
            Console.WriteLine($"    Font Color: {noteTag.FontColor}");
            Console.WriteLine($"    Status: {noteTag.Status}");
            Console.WriteLine($"    Label: {noteTag.Label}");
            Console.WriteLine($"    Icon: {noteTag.Icon}");
            Console.WriteLine($"    High Light: {noteTag.Highlight}");
         }
      }
   }

Status

Geeft of stelt de status.

TagStatus GetStatus()
   {
      return this.Status;
   }

Eigendomswaarde

TagStatus

Examples

Toon hoe u toegang krijgt tot details van de taken van Outlook.

string dataDir = RunExamples.GetDataDir_Tasks();
   Document oneFile = new Document(dataDir + "Aspose.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
       var tasks = richText.Tags.OfType<NoteTask>();
       if (tasks.Any())
       {
           Console.WriteLine($"Task: {richText.Text}");
           foreach (var noteTask in tasks)
           {
               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}");
           }
       }
   }

Toon hoe u toegang krijgt tot de details van een tag.

string dataDir = RunExamples.GetDataDir_Tags();
   Document oneFile = new Document(dataDir + "TagFile.one");
   IList<RichText> nodes = oneFile.GetChildNodes<RichText>();
   foreach (RichText richText in nodes)
   {
       var tags = richText.Tags.OfType<NoteTag>();
       if (tags.Any())
       {
           Console.WriteLine($"Text: {richText.Text}");
           foreach (var noteTag in tags)
           {
               Console.WriteLine($"    Completed Time: {noteTag.CompletedTime}");
               Console.WriteLine($"    Create Time: {noteTag.CreationTime}");
               Console.WriteLine($"    Font Color: {noteTag.FontColor}");
               Console.WriteLine($"    Status: {noteTag.Status}");
               Console.WriteLine($"    Label: {noteTag.Label}");
               Console.WriteLine($"    Icon: {noteTag.Icon}");
               Console.WriteLine($"    High Light: {noteTag.Highlight}");
           }
       }
   }
 Nederlands