public class Style extends Object
This class contains common properties of ParagraphStyle
and TextStyle
classes.
Constructor and Description |
---|
Style() |
Modifier and Type | Method and Description |
---|---|
Color |
getFontColor()
Gets or sets the font color.
|
String |
getFontName()
Gets or sets the font name.
|
Integer |
getFontSize()
Gets or sets the font size.
|
int |
getFontStyle()
Gets the font style.
|
Color |
getHighlight()
Gets or sets the highlight color.
|
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 |
isItalic()
Gets or sets a value indicating whether the text style is italic.
|
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(Integer value)
Gets or sets the font size.
|
void |
setHighlight(Color value)
Gets or sets the highlight color.
|
void |
setItalic(boolean value)
Gets or sets a value indicating whether the text style is italic.
|
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 final boolean isBold()
Gets or sets a value indicating whether the text style is bold.
public final void setBold(boolean value)
Gets or sets a value indicating whether the text style is bold.
public final boolean isItalic()
Gets or sets a value indicating whether the text style is italic.
public final void setItalic(boolean value)
Gets or sets a value indicating whether the text style is italic.
public final boolean isUnderline()
Gets or sets a value indicating whether the text style is underline.
public final void setUnderline(boolean value)
Gets or sets a value indicating whether the text style is underline.
public final boolean isStrikethrough()
Gets or sets a value indicating whether the text style is strikethrough.
public final void setStrikethrough(boolean value)
Gets or sets a value indicating whether the text style is strikethrough.
public final boolean isSuperscript()
Gets or sets a value indicating whether the text style is superscript.
public final void setSuperscript(boolean value)
Gets or sets a value indicating whether the text style is superscript.
public final boolean isSubscript()
Gets or sets a value indicating whether the text style is subscript.
public final void setSubscript(boolean value)
Gets or sets a value indicating whether the text style is subscript.
public final String getFontName()
Gets or sets the font name.
public final void setFontName(String value)
Gets or sets the font name.
public final Integer getFontSize()
Gets or sets the font size.
public final void setFontSize(Integer value)
Gets or sets the font size.
public final Color getFontColor()
Gets or sets the font color.
public final void setFontColor(Color value)
Gets or sets the font color.
public final Color getHighlight()
Gets or sets the highlight color.
public final void setHighlight(Color value)
Gets or sets the highlight color.
public final int getFontStyle()
Gets the font style.
Copyright (c) 2002-2022 Aspose. All Rights Reserved.