Constructor and Description |
---|
TextStyle()
Initializes a new instance of the
TextStyle class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether the specified object is equal to the current object.
|
boolean |
equals(TextStyle other)
Determines whether the specified object is equal to the current object.
|
static TextStyle |
getDefault()
Gets default style for title text in MS OneNote.
|
static TextStyle |
getDefaultMsOneNoteTitleDateStyle()
Gets default style for title date in MS OneNote.
|
static TextStyle |
getDefaultMsOneNoteTitleTextStyle()
Gets default style for title text in MS OneNote.
|
static TextStyle |
getDefaultMsOneNoteTitleTimeStyle()
Gets default style for title time in MS OneNote.
|
String |
getHyperlinkAddress()
Gets the hyperlink address.
|
Locale |
getLanguage()
Gets the language of the text.
|
int |
hashCode()
Serves as a hash function for the type.
|
boolean |
isHidden()
Gets a value indicating whether the text style is hidden.
|
boolean |
isHyperlink()
Gets a value indicating whether the text style is hyperlink.
|
boolean |
isMathFormatting()
Gets or sets a value indicating whether the text style is math-formatting.
|
TextStyle |
setHidden(boolean value)
Sets a value indicating whether the text style is hidden.
|
TextStyle |
setHyperlink(boolean value)
Deprecated.
Obsolete since 22.5 release. Just use setHyperlinkAddress.
|
TextStyle |
setHyperlinkAddress(String value)
Sets the hyperlink address.
|
TextStyle |
setLanguage(Locale value)
Sets the language of the text.
|
void |
setMathFormatting(boolean value)
Sets a value indicating whether the text style is math-formatting.
|
getFontColor, getFontName, getFontSize, getFontStyle, getHighlight, isBold, isItalic, isStrikethrough, isSubscript, isSuperscript, isUnderline, setBold, setFontColor, setFontName, setFontSize, setHighlight, setItalic, setStrikethrough, setSubscript, setSuperscript, setUnderline
public static TextStyle getDefault()
Gets default style for title text in MS OneNote.
public static TextStyle getDefaultMsOneNoteTitleTextStyle()
Gets default style for title text in MS OneNote.
public static TextStyle getDefaultMsOneNoteTitleDateStyle()
Gets default style for title date in MS OneNote.
public static TextStyle getDefaultMsOneNoteTitleTimeStyle()
Gets default style for title time in MS OneNote.
public boolean isMathFormatting()
Gets or sets a value indicating whether the text style is math-formatting.
public void setMathFormatting(boolean value)
Sets a value indicating whether the text style is math-formatting.
public boolean isHyperlink()
Gets a value indicating whether the text style is hyperlink.
@Deprecated public TextStyle setHyperlink(boolean value)
Sets a value indicating whether the text style is hyperlink.
public String getHyperlinkAddress()
Gets the hyperlink address. Must be set if the value of the isHyperlink()
property is true.
public TextStyle setHyperlinkAddress(String value)
Sets the hyperlink address. Must be set if the value of the isHyperlink()
property is true.
public boolean isHidden()
Gets a value indicating whether the text style is hidden.
public TextStyle setHidden(boolean value)
Sets a value indicating whether the text style is hidden.
public Locale getLanguage()
Gets the language of the text.
public boolean equals(Object obj)
Determines whether the specified object is equal to the current object.
public boolean equals(TextStyle other)
Determines whether the specified object is equal to the current object.
other
- The object.bool
.