public final class ParagraphStyle extends Object implements com.aspose.ms.System.IEquatable<ParagraphStyle>, Cloneable
Text style settings to be used if there is no matching TextStyle object in RichText.getStyles()
collection either this object doesn't specify a needed setting.
Constructor and Description |
---|
ParagraphStyle() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether the specified object is equal to the current object.
|
boolean |
equals(ParagraphStyle other)
Determines whether the specified object is equal to the current object.
|
static ParagraphStyle |
getDefault()
Gets the ParagraphStyle with default settings.
|
Color |
getFontColor()
Gets the font color.
|
String |
getFontName()
Gets the font name.
|
int |
getFontSize()
Gets the font size.
|
int |
getFontStyle()
Gets the font style.
|
Color |
getHighlight()
Gets the highlight color.
|
int |
hashCode()
Serves as a hash function for the type.
|
boolean |
isBold()
Gets a value indicating whether the text style is bold.
|
boolean |
isItalic()
Gets a value indicating whether the text style is italic.
|
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(int value)
Sets the font size.
|
void |
setHighlight(Color value)
Sets the highlight color.
|
void |
setItalic(boolean value)
Sets a value indicating whether the text style is italic.
|
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 ParagraphStyle getDefault()
Gets the ParagraphStyle with default settings.
public final boolean isBold()
Gets a value indicating whether the text style is bold.
public final void setBold(boolean value)
Sets a value indicating whether the text style is bold.
public final boolean isItalic()
Gets a value indicating whether the text style is italic.
public final void setItalic(boolean value)
Sets a value indicating whether the text style is italic.
public final boolean isUnderline()
Gets a value indicating whether the text style is underline.
public final void setUnderline(boolean value)
Sets a value indicating whether the text style is underline.
public final boolean isStrikethrough()
Gets a value indicating whether the text style is strikethrough.
public final void setStrikethrough(boolean value)
Sets a value indicating whether the text style is strikethrough.
public final boolean isSuperscript()
Gets a value indicating whether the text style is superscript.
public final void setSuperscript(boolean value)
Sets a value indicating whether the text style is superscript.
public final boolean isSubscript()
Gets a value indicating whether the text style is subscript.
public final void setSubscript(boolean value)
Sets a value indicating whether the text style is subscript.
public final String getFontName()
Gets the font name.
public final void setFontName(String value)
Sets the font name.
public final int getFontSize()
Gets the font size.
public final void setFontSize(int value)
Sets the font size.
public final Color getFontColor()
Gets the font color.
public final void setFontColor(Color value)
Sets the font color.
public final Color getHighlight()
Gets the highlight color.
public final void setHighlight(Color value)
Sets the highlight color.
public final int getFontStyle()
Gets the font style.
public boolean equals(Object obj)
Determines whether the specified object is equal to the current object.
equals
in interface com.aspose.ms.System.IEquatable<ParagraphStyle>
equals
in class Object
obj
- The object.boolean
.public final boolean equals(ParagraphStyle other)
Determines whether the specified object is equal to the current object.
other
- The object.boolean
.Copyright (c) 2002-2021 Aspose. All Rights Reserved.