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 or sets the font color.
|
String |
getFontName()
Gets or sets the font name.
|
int |
getFontSize()
Gets or sets the font size.
|
int |
getFontStyle()
Gets the font style.
|
Color |
getHighlight()
Gets or sets the highlight color.
|
String |
getHyperlinkAddress()
Gets or sets the hyperlink address.
|
int |
getRunIndex()
Gets or sets the run index.
|
int |
hashCode()
Serves as a hash function for the type.
|
boolean |
isBold()
Gets or sets a value indicating whether the text style is bold.
|
boolean |
isHidden()
Gets or sets a value indicating whether the text style is hidden.
|
boolean |
isHyperlink()
Gets or sets a value indicating whether the text style is hyperlink.
|
boolean |
isItalic()
Gets or sets a value indicating whether the text style is italic.
|
boolean |
isMathFormatting()
Gets or sets a value indicating whether the text style is math-formatting.
|
boolean |
isStrikethrough()
Gets or sets a value indicating whether the text style is strikethrough.
|
boolean |
isSubscript()
Gets or sets a value indicating whether the text style is subscript.
|
boolean |
isSuperscript()
Gets or sets a value indicating whether the text style is superscript.
|
boolean |
isUnderline()
Gets or sets a value indicating whether the text style is underline.
|
void |
setBold(boolean value)
Gets or sets a value indicating whether the text style is bold.
|
void |
setFontColor(Color value)
Gets or sets the font color.
|
void |
setFontName(String value)
Gets or sets the font name.
|
void |
setFontSize(int value)
Gets or sets the font size.
|
void |
setHidden(boolean value)
Gets or sets a value indicating whether the text style is hidden.
|
void |
setHighlight(Color value)
Gets or sets the highlight color.
|
void |
setHyperlink(boolean value)
Gets or sets a value indicating whether the text style is hyperlink.
|
void |
setHyperlinkAddress(String value)
Gets or sets the hyperlink address.
|
void |
setItalic(boolean value)
Gets or sets a value indicating whether the text style is italic.
|
void |
setMathFormatting(boolean value)
Gets or sets a value indicating whether the text style is math-formatting.
|
void |
setRunIndex(int value)
Gets or sets the run index.
|
void |
setStrikethrough(boolean value)
Gets or sets a value indicating whether the text style is strikethrough.
|
void |
setSubscript(boolean value)
Gets or sets a value indicating whether the text style is subscript.
|
void |
setSuperscript(boolean value)
Gets or sets a value indicating whether the text style is superscript.
|
void |
setUnderline(boolean value)
Gets or 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 or sets a value indicating whether the text style is bold.
public void setBold(boolean value)
Gets or sets a value indicating whether the text style is bold.
public boolean isItalic()
Gets or sets a value indicating whether the text style is italic.
public void setItalic(boolean value)
Gets or sets a value indicating whether the text style is italic.
public boolean isUnderline()
Gets or sets a value indicating whether the text style is underline.
public void setUnderline(boolean value)
Gets or sets a value indicating whether the text style is underline.
public boolean isStrikethrough()
Gets or sets a value indicating whether the text style is strikethrough.
public void setStrikethrough(boolean value)
Gets or sets a value indicating whether the text style is strikethrough.
public boolean isSuperscript()
Gets or sets a value indicating whether the text style is superscript.
public void setSuperscript(boolean value)
Gets or sets a value indicating whether the text style is superscript.
public boolean isSubscript()
Gets or sets a value indicating whether the text style is subscript.
public void setSubscript(boolean value)
Gets or sets a value indicating whether the text style is subscript.
public String getFontName()
Gets or sets the font name.
public void setFontName(String value)
Gets or sets the font name.
public int getFontSize()
Gets or sets the font size.
public void setFontSize(int value)
Gets or sets the font size.
public Color getFontColor()
Gets or sets the font color.
public void setFontColor(Color value)
Gets or sets the font color.
public Color getHighlight()
Gets or sets the highlight color.
public void setHighlight(Color value)
Gets or sets the highlight color.
public boolean isMathFormatting()
Gets or sets a value indicating whether the text style is math-formatting.
public void setMathFormatting(boolean value)
Gets or sets a value indicating whether the text style is math-formatting.
public boolean isHyperlink()
Gets or sets a value indicating whether the text style is hyperlink.
public void setHyperlink(boolean value)
Gets or sets a value indicating whether the text style is hyperlink.
public String getHyperlinkAddress()
Gets or sets the hyperlink address. Must be set if the value of the IsHyperlink
property is true.
public void setHyperlinkAddress(String value)
Gets or sets the hyperlink address. Must be set if the value of the IsHyperlink
property is true.
public boolean isHidden()
Gets or sets a value indicating whether the text style is hidden.
public void setHidden(boolean value)
Gets or sets a value indicating whether the text style is hidden.
public int getRunIndex()
Gets or sets the run index.
public void setRunIndex(int value)
Gets or sets the run index.
public int getFontStyle()
Gets the font style.
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
.