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

NameTypeAccessDescription
IsHyperlinkboolReadGets the is hyperlink.
HyperlinkAddressstr | NoneReadGets the hyperlink address.
FontNamestr | NoneReadGets the font name.
FontSizefloat | NoneReadGets the font size.
FontColorint | NoneReadGets the font color.
Highlightint | NoneReadGets the highlight.
Languageint | NoneReadGets the language.
IsBoldboolReadGets the is bold.
IsItalicboolReadGets the is italic.
IsUnderlineboolReadGets the is underline.
IsStrikethroughboolReadGets the is strikethrough.
IsSuperscriptboolReadGets the is superscript.
IsSubscriptboolReadGets the is subscript.
IsHiddenboolReadGets the is hidden.
IsMathFormattingboolReadGets the is math formatting.
FontStyleintReadGets the font style.

Methods

SignatureDescription
__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()TextStyleReturns a TextStyle object representing the library’s default text formatting
DefaultMsOneNoteTitleTextStyle()TextStyleReturns a TextStyle configured for OneNote title text
DefaultMsOneNoteTitleDateStyle()TextStyleReturns a TextStyle configured for OneNote title date
DefaultMsOneNoteTitleTimeStyle()TextStyleReturns a TextStyle configured for OneNote title time

See Also