public final class TextItemOptions extends Object
Provides the options for a text item.
Modifier and Type | Field and Description |
---|---|
static TextItemOptions |
BOLD
Gets an options for Bold text.
|
static TextItemOptions |
BOLD_ITALIC
Gets an options for Bold and Italic text.
|
static TextItemOptions |
EMPTY
Gets an empty instance.
|
static TextItemOptions |
ITALIC
Gets an options for Italic text.
|
Constructor and Description |
---|
TextItemOptions()
Initializes a new instance of the
TextItemOptions class. |
TextItemOptions(boolean isBold,
boolean isItalic)
Initializes a new instance of the
TextItemOptions class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
boolean |
equals(TextItemOptions other)
Indicates whether the current object is equal to another object of the same type.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isBold()
Gets a value indicating whether text is bold.
|
boolean |
isItalic()
Gets a value indicating whether text is italic.
|
static boolean |
op_Equality(TextItemOptions left,
TextItemOptions right)
Checks if the values of two operands are equal or not, if yes then condition becomes true.
|
static boolean |
op_Inequality(TextItemOptions left,
TextItemOptions right)
Checks if the values of two operands are equal or not, if values are not equal then condition becomes true.
|
public static final TextItemOptions EMPTY
Gets an empty instance.
public static final TextItemOptions BOLD
Gets an options for Bold text.
public static final TextItemOptions ITALIC
Gets an options for Italic text.
public static final TextItemOptions BOLD_ITALIC
Gets an options for Bold and Italic text.
public TextItemOptions()
Initializes a new instance of the TextItemOptions
class.
public TextItemOptions(boolean isBold, boolean isItalic)
Initializes a new instance of the TextItemOptions
class.
isBold
- A boolean if text is bold; otherwise, false.isItalic
- A boolean if text is italic; otherwise, false.public boolean isBold()
Gets a value indicating whether text is bold.
public boolean isItalic()
Gets a value indicating whether text is italic.
public static boolean op_Equality(TextItemOptions left, TextItemOptions right)
Checks if the values of two operands are equal or not, if yes then condition becomes true.
left
- The first object to compare.right
- The second object to compare.public static boolean op_Inequality(TextItemOptions left, TextItemOptions right)
Checks if the values of two operands are equal or not, if values are not equal then condition becomes true.
left
- The first object to compare.right
- The second object to compare.public boolean equals(TextItemOptions 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)
Indicates whether some other object is "equal to" this one.
Copyright © 2019. All rights reserved.