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 isBold,
boolean isItalic)
Deprecated.
|
TextProperties(boolean isBold,
boolean isItalic,
String style)
Deprecated.
|
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) |
boolean |
equals(TextProperties other) |
Font |
getFont()
Gets a font of the text.
|
String |
getStyle()
Gets a style name of the text.
|
int |
hashCode() |
boolean |
isBold()
Deprecated.
|
boolean |
isEmphasized()
Gets a value indicating whether the text is emphasized.
|
boolean |
isItalic()
Deprecated.
|
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.@Deprecated public TextProperties(boolean isBold, boolean isItalic)
@Deprecated public TextProperties(boolean isBold, boolean isItalic, String style)
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
.@Deprecated public boolean isBold()
@Deprecated public boolean isItalic()
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)
Copyright © 2018. All rights reserved.