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.
|
Color |
getFontColor()
Gets the font color.
|
String |
getFontName()
Gets the font name.
|
Integer |
getFontSize()
Gets the font size.
|
int |
getFontStyle()
Gets the font style.
|
Color |
getHighlight()
Gets the highlight color.
|
String |
getHyperlinkAddress()
Gets the hyperlink address.
|
Locale |
getLanguage()
Gets the language of the text.
|
int |
getRunIndex()
Gets the run index.
|
int |
hashCode()
Serves as a hash function for the type.
|
boolean |
isBold()
Gets a value indicating whether the text style is bold.
|
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 |
isItalic()
Gets a value indicating whether the text style is italic.
|
boolean |
isMathFormatting()
Gets a value indicating whether the text style is math-formatting.
|
boolean |
isStrikethrough()
Gets a value indicating whether the text style is strikethrough.
|
boolean |
isSubscript()
Gets a value indicating whether the text style is subscript.
|
boolean |
isSuperscript()
Gets a value indicating whether the text style is superscript.
|
boolean |
isUnderline()
Gets a value indicating whether the text style is underline.
|
void |
setBold(boolean value)
Sets a value indicating whether the text style is bold.
|
void |
setFontColor(Color value)
Sets the font color.
|
void |
setFontName(String value)
Sets the font name.
|
void |
setFontSize(Integer value)
Sets the font size.
|
void |
setHidden(boolean value)
Sets a value indicating whether the text style is hidden.
|
void |
setHighlight(Color value)
Sets the highlight color.
|
void |
setHyperlink(boolean value)
Sets a value indicating whether the text style is hyperlink.
|
void |
setHyperlinkAddress(String value)
Sets the hyperlink address.
|
void |
setItalic(boolean value)
Sets a value indicating whether the text style is italic.
|
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.
|
void |
setStrikethrough(boolean value)
Sets a value indicating whether the text style is strikethrough.
|
void |
setSubscript(boolean value)
Sets a value indicating whether the text style is subscript.
|
void |
setSuperscript(boolean value)
Sets a value indicating whether the text style is superscript.
|
void |
setUnderline(boolean value)
Sets a value indicating whether the text style is underline.
|
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 isBold()
Gets a value indicating whether the text style is bold.
public void setBold(boolean value)
Sets a value indicating whether the text style is bold.
public boolean isItalic()
Gets a value indicating whether the text style is italic.
public void setItalic(boolean value)
Sets a value indicating whether the text style is italic.
public boolean isUnderline()
Gets a value indicating whether the text style is underline.
public void setUnderline(boolean value)
Sets a value indicating whether the text style is underline.
public boolean isStrikethrough()
Gets a value indicating whether the text style is strikethrough.
public void setStrikethrough(boolean value)
Sets a value indicating whether the text style is strikethrough.
public boolean isSuperscript()
Gets a value indicating whether the text style is superscript.
public void setSuperscript(boolean value)
Sets a value indicating whether the text style is superscript.
public boolean isSubscript()
Gets a value indicating whether the text style is subscript.
public void setSubscript(boolean value)
Sets a value indicating whether the text style is subscript.
public String getFontName()
Gets the font name.
public void setFontName(String value)
Sets the font name.
public Integer getFontSize()
Gets the font size.
public void setFontSize(Integer value)
Sets the font size.
public Color getFontColor()
Gets the font color.
public void setFontColor(Color value)
Sets the font color.
public Color getHighlight()
Gets the highlight color.
public void setHighlight(Color value)
Sets the highlight color.
public boolean isMathFormatting()
Gets 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 void setRunIndex(int value)
Gets the run index.
public int getFontStyle()
Gets the font style.
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-2021 Aspose. All Rights Reserved.