RichText.Tags
RichText.Tags property
Получает список всех тегов абзаца.
public List<ITag> Tags { get; }
Примеры
Показывает, как получить доступ к сведениям о задачах Outlook.
// Путь к каталогу документов.
string dataDir = RunExamples.GetDataDir_Tasks();
// Загрузите документ в Aspose.Note.
Document oneFile = new Document(dataDir + "Aspose.one");
// Получить все узлы RichText
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}");
        }
    }
}
Смотрите также
- interface ITag
- class RichText
- пространство имен Aspose.Note
- сборка Aspose.Note