public final class TextProperties extends StructuredElementProperties
Provides properties of the value of the document's element.
Modifier and Type | Field and Description |
---|---|
static TextProperties |
EMPTY
The empty text properties.
|
Constructor and Description |
---|
TextProperties()
Initializes a new instance of the
TextProperties class. |
TextProperties(boolean isEmphasized)
Initializes a new instance of the
TextProperties class. |
TextProperties(boolean isEmphasized,
String style)
Initializes a new instance of the
TextProperties class. |
TextProperties(Font font)
Initializes a new instance of the
TextProperties class. |
TextProperties(Font font,
String style)
Initializes a new instance of the
TextProperties class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether the specified object is equal to the current object.
|
boolean |
equals(TextProperties other)
Indicates whether the current object is equal to another object of the same type.
|
Font |
getFont()
Gets a font of the text.
|
String |
getStyle()
Gets a style name of the text.
|
int |
hashCode()
Serves as a hash function for a particular type.
|
boolean |
isEmphasized()
Gets a value indicating whether the text is emphasized.
|
get_Item, getElementType, getSkipElement, isEmptyElement, setSkipElement
public static final TextProperties EMPTY
The empty text properties.
public TextProperties()
Initializes a new instance of the TextProperties
class.
public TextProperties(boolean isEmphasized)
Initializes a new instance of the TextProperties
class.
isEmphasized
- A value indicating whether the text is emphasized.public TextProperties(boolean isEmphasized, String style)
Initializes a new instance of the TextProperties
class.
isEmphasized
- A value indicating whether the text is emphasized.style
- A style name of the text.public TextProperties(Font font)
Initializes a new instance of the TextProperties
class.
font
- A font of the text.public boolean isEmphasized()
Gets a value indicating whether the text is emphasized.
true
if the text is emphasized; otherwise, false
.public String getStyle()
Gets a style name of the text.
public Font getFont()
Gets a font of the text.
Font
class.public boolean equals(TextProperties other)
Indicates whether the current object is equal to another object of the same type.
other
- An object to compare with this object.public boolean equals(Object obj)
Determines whether the specified object is equal to the current object.
Copyright © 2019. All rights reserved.