TextStyle
Overview
TextStyle is a class in Aspose.Note FOSS for Python.
TextStyle.Default returns a TextStyle object representing the library’s default text formatting.
This class provides 5 methods for working with TextStyle objects in Python programs.
Available methods include: Default, DefaultMsOneNoteTitleDateStyle, DefaultMsOneNoteTitleTextStyle, DefaultMsOneNoteTitleTimeStyle, __init__.
All exported members are accessible to any Python application after installing the Aspose.Note FOSS for Python package.
Properties: FontColor, FontName, FontSize, FontStyle, Highlight, HyperlinkAddress, and 10 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
IsHyperlink | bool | Read | Gets the is hyperlink. |
HyperlinkAddress | str | None | Read | Gets the hyperlink address. |
FontName | str | None | Read | Gets the font name. |
FontSize | float | None | Read | Gets the font size. |
FontColor | int | None | Read | Gets the font color. |
Highlight | int | None | Read | Gets the highlight. |
Language | int | None | Read | Gets the language. |
IsBold | bool | Read | Gets the is bold. |
IsItalic | bool | Read | Gets the is italic. |
IsUnderline | bool | Read | Gets the is underline. |
IsStrikethrough | bool | Read | Gets the is strikethrough. |
IsSuperscript | bool | Read | Gets the is superscript. |
IsSubscript | bool | Read | Gets the is subscript. |
IsHidden | bool | Read | Gets the is hidden. |
IsMathFormatting | bool | Read | Gets the is math formatting. |
FontStyle | int | Read | Gets the font style. |
Methods
| Signature | Description |
|---|---|
__init__(IsHyperlink: bool, HyperlinkAddress: str | None, FontName: str | None, FontSize: float | None, FontColor: int | None, Highlight: int | None, Language: int | None, IsBold: bool, IsItalic: bool, IsUnderline: bool, IsStrikethrough: bool, IsSuperscript: bool, IsSubscript: bool, IsHidden: bool, IsMathFormatting: bool) | |
Default() → TextStyle | Returns a TextStyle object representing the library’s default text formatting |
DefaultMsOneNoteTitleTextStyle() → TextStyle | Returns a TextStyle configured for OneNote title text |
DefaultMsOneNoteTitleDateStyle() → TextStyle | Returns a TextStyle configured for OneNote title date |
DefaultMsOneNoteTitleTimeStyle() → TextStyle | Returns a TextStyle configured for OneNote title time |