public final class TextStyle extends Style
Specifies the text style.
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 |
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 |
getRunIndex()
Gets the run index.
|
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.
|
void |
setHidden(boolean value)
Sets a value indicating whether the text style is hidden.
|
void |
setHyperlink(boolean value)
Sets a value indicating whether the text style is hyperlink.
|
void |
setHyperlinkAddress(String value)
Sets the hyperlink address.
|
void |
setLanguage(Locale value)
Sets the language of the text.
|
void |
setMathFormatting(boolean value)
Sets a value indicating whether the text style is math-formatting.
|
void |
setRunIndex(int value)
Gets the run index.
|
getFontColor, getFontName, getFontSize, getFontStyle, getHighlight, hashCode, isBold, isItalic, isStrikethrough, isSubscript, isSuperscript, isUnderline, setBold, setFontColor, setFontName, setFontSize, setHighlight, setItalic, setStrikethrough, setSubscript, setSuperscript, setUnderline
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.
public void 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 void 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 void setHidden(boolean value)
Sets a value indicating whether the text style is hidden.
public int getRunIndex()
Gets the run index.
public final void setRunIndex(int value)
Gets the run index.
public Locale getLanguage()
Gets the language of the text.
public void setLanguage(Locale value)
Sets 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
.Copyright (c) 2002-2022 Aspose. All Rights Reserved.