public class TextDecorationLineType extends Object
Represents types of the text decoration line: underline (underscore), overline, and line-through (strikethrough)
| Modifier and Type | Field and Description |
|---|---|
static TextDecorationLineType |
LineThrough
Each line of text has a line through the middle.
|
static TextDecorationLineType |
None
Produces no text decoration.
|
static TextDecorationLineType |
Overline
Each line of text has a line above it.
|
static TextDecorationLineType |
Underline
Each line of text is underlined.
|
| Constructor and Description |
|---|
TextDecorationLineType() |
TextDecorationLineType(int value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Indicates whether this
TextDecorationLineType instance is equal to specified uncasted |
boolean |
equals(TextDecorationLineType other)
Indicates whether this
TextDecorationLineType instance is equal to specified |
static TextDecorationLineType |
fromFlags(boolean isUnderline,
boolean isOverline,
boolean isLineThrough)
Creates and returns a
TextDecorationLineType instance with flags, defined by the specified parameters |
String |
getValue()
Returns a value of all flags in this instance as text
|
int |
hashCode()
Returns a hash-code of this instance
|
boolean |
isInitial()
Indicates whether this instance has an initial value — None
|
boolean |
isLineThrough()
Indicates whether line-through (strikethrough) is enabled
|
boolean |
isOverline()
Indicates whether overline is enabled
|
boolean |
isUnderline()
Indicates whether underline (underscore) is enabled
|
static TextDecorationLineType |
op_Addition(TextDecorationLineType first,
TextDecorationLineType second)
Combines (merges) two specified line types and produces new resultant line type, where flags are merged (union)
|
static TextDecorationLineType |
op_Division(TextDecorationLineType first,
TextDecorationLineType second)
Returns an intersection between first and second line types, where only those flags are enabled, which are enabled simultaneously in both operands.
|
static boolean |
op_Equality(TextDecorationLineType first,
TextDecorationLineType second)
Checks whether two "TextDecorationLineType" values are equal
|
static boolean |
op_Inequality(TextDecorationLineType first,
TextDecorationLineType second)
Checks whether two "TextDecorationLineType" values are not equal
|
static TextDecorationLineType |
op_Subtraction(TextDecorationLineType first,
TextDecorationLineType second)
Subtracts second specified line type from the first specified line type and produces new resultant line type, where are present only those flags from the first operand, which are not found in the second operand (difference)
|
static TextDecorationLineType |
to_TextDecorationLineType(byte octet)
Casts specific
byte (8-bit octet) to the corresponding TextDecorationLineType, throws exception if casting is invalid |
String |
toString()
Returns a value of all flags in this instance as text
|
static boolean |
tryParse(String input,
TextDecorationLineType[] output)
Tries to parse a specified string and return a valid
TextDecorationLineType instance |
public static final TextDecorationLineType LineThrough
Each line of text has a line through the middle.
public static final TextDecorationLineType None
Produces no text decoration. Initial value.
public static final TextDecorationLineType Overline
Each line of text has a line above it.
public static final TextDecorationLineType Underline
Each line of text is underlined.
public TextDecorationLineType()
public TextDecorationLineType(int value)
public boolean equals(Object other)
Indicates whether this TextDecorationLineType instance is equal to specified uncasted
equals in class Objectother - Other TextDecorationLineType instance, casted to objecttrue if are equal, false otherwisepublic final boolean equals(TextDecorationLineType other)
Indicates whether this TextDecorationLineType instance is equal to specified
other - Other TextDecorationLineType instancetrue if are equal, false otherwisepublic static TextDecorationLineType fromFlags(boolean isUnderline, boolean isOverline, boolean isLineThrough)
Creates and returns a TextDecorationLineType instance with flags, defined by the specified parameters
isUnderline - Determines whether an underline flag is enabled or notisOverline - Determines whether an overline flag is enabled or notisLineThrough - Determines whether an line-through flag is enabled or notTextDecorationLineType instancepublic final String getValue()
Returns a value of all flags in this instance as text
public int hashCode()
Returns a hash-code of this instance
public final boolean isInitial()
Indicates whether this instance has an initial value — None
public final boolean isLineThrough()
Indicates whether line-through (strikethrough) is enabled
public final boolean isOverline()
Indicates whether overline is enabled
public final boolean isUnderline()
Indicates whether underline (underscore) is enabled
public static TextDecorationLineType op_Addition(TextDecorationLineType first, TextDecorationLineType second)
Combines (merges) two specified line types and produces new resultant line type, where flags are merged (union)
first - First line type operandsecond - Second line type operandpublic static TextDecorationLineType op_Division(TextDecorationLineType first, TextDecorationLineType second)
Returns an intersection between first and second line types, where only those flags are enabled, which are enabled simultaneously in both operands. Has the highest priority between all operators (higher than union and difference)
first - First line type operandsecond - Second line type operandpublic static boolean op_Equality(TextDecorationLineType first, TextDecorationLineType second)
Checks whether two "TextDecorationLineType" values are equal
first - First operand to checksecond - Second operand to checktrue if are equal, false otherwisepublic static boolean op_Inequality(TextDecorationLineType first, TextDecorationLineType second)
Checks whether two "TextDecorationLineType" values are not equal
first - First operand to checksecond - Second operand to checktrue if are unequal, false otherwisepublic static TextDecorationLineType op_Subtraction(TextDecorationLineType first, TextDecorationLineType second)
Subtracts second specified line type from the first specified line type and produces new resultant line type, where are present only those flags from the first operand, which are not found in the second operand (difference)
first - First line type operandsecond - Second line type operandpublic static TextDecorationLineType to_TextDecorationLineType(byte octet)
Casts specific byte (8-bit octet) to the corresponding TextDecorationLineType, throws exception if casting is invalid
octet - A 8-bit octet (bitfield), where 5 leading bits are zeros, while last 3 indicate flagscom.aspose.ms.System.ArgumentOutOfRangeException - Specified octet has invalid valuepublic String toString()
Returns a value of all flags in this instance as text
public static boolean tryParse(String input, TextDecorationLineType[] output)
Tries to parse a specified string and return a valid TextDecorationLineType instance
input - Input stringoutput - Result. If parsing is invalid, it is a None valuetrue if parsing was successful, false on failureCopyright © 2026. All rights reserved.