TextRun

Overview

TextRun is a class in Aspose.Note for Python.

TextRun.Text holds the plain string content of the run.

TextRun is a single formatted segment within a RichText node. Each run has its own Style (TextStyle) that specifies font name, size, bold, italic, underline, color, and hyperlink URL. Multiple runs are concatenated to form the visible text of a RichText block. Enumerate runs via rich_text.GetChildNodes(TextRun) to inspect per-character formatting in detail.

Properties

NameTypeAccessDescription
TextstrReadHolds the plain string content of the run
StyleTextStyleReadProvides the TextStyle object that defines formatting for the run