Skip to main content

TextFontStyle Class

Lists font styles that can be applied to PDF text.

Declaration

public final class TextFontStyle extends IntEnum<TextFontStyle>

Remarks

The TextFontStyle class supports combined font style values and allows you to specify whether text uses regular, bold, or italic formatting.

Inherited Members

com.devexpress.java.enums.IntEnum.clone()
com.devexpress.java.enums.IntEnum.equals(java.lang.Object)
com.devexpress.java.enums.IntEnum.getName()
com.devexpress.java.enums.IntEnum.getValue()
com.devexpress.java.enums.IntEnum.hasFlag(T)
com.devexpress.java.enums.IntEnum.hasFlag(int)
com.devexpress.java.enums.IntEnum.hashCode()
com.devexpress.java.enums.IntEnum.readResolve()
com.devexpress.java.enums.IntEnum.resolve(int)
com.devexpress.java.enums.IntEnum.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
com.devexpress.java.enums.IntEnum
TextFontStyle

Fields

_BOLD Field

Applies bold font style to PDF text.

Declaration

public static final int _BOLD

Field Value

Type Description
int

Specifies that bold font style is applied to PDF text.

_ITALIC Field

Applies regular font style to PDF text.

Declaration

public static final int _ITALIC

Field Value

Type Description
int

Specifies that italic font style is applied to PDF text.

_REGULAR Field

Applies regular font style to PDF text.

Declaration

public static final int _REGULAR

Field Value

Type Description
int

Specifies that regular font style is applied to PDF text.

BOLD Field

Specifies bold font style.

Declaration

public static final TextFontStyle BOLD

Field Value

Type Description
TextFontStyle

Bold font style.

ITALIC Field

Specifies italic font style.

Declaration

public static final TextFontStyle ITALIC

Field Value

Type Description
TextFontStyle

Italic font style.

REGULAR Field

Specifies regular font style without additional formatting.

Declaration

public static final TextFontStyle REGULAR

Field Value

Type Description
TextFontStyle

Regular font style.

Methods

fromValue(int value) Method

Returns the enum item with the specified integer value.

Declaration

public static TextFontStyle fromValue(int value)

Parameters

Name Type Description
value int

The integer value.

Returns

Type Description
TextFontStyle

The integer value.

values() Method

Returns available constants.

Declaration

public static TextFontStyle[] values()

Returns

Type Description
TextFontStyle[]

An array that contains predefined font styles.