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 public 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
IsHyperlinkboolRead/WriteGets or sets the is hyperlink.
HyperlinkAddressstr | NoneRead/WriteGets or sets the hyperlink address.
FontNamestr | NoneRead/WriteGets or sets the font name.
FontSizefloat | NoneRead/WriteGets or sets the font size.
FontColorint | NoneRead/WriteGets or sets the font color.
Highlightint | NoneRead/WriteGets or sets the highlight.
Languageint | NoneRead/WriteGets or sets the language.
IsBoldboolRead/WriteGets or sets the is bold.
IsItalicboolRead/WriteGets or sets the is italic.
IsUnderlineboolRead/WriteGets or sets the is underline.
IsStrikethroughboolRead/WriteGets or sets the is strikethrough.
IsSuperscriptboolRead/WriteGets or sets the is superscript.
IsSubscriptboolRead/WriteGets or sets the is subscript.
IsHiddenboolRead/WriteGets or sets the is hidden.
IsMathFormattingboolRead/WriteGets or sets 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

 English