TextReplaceOptions.FontSizeAdjustment

Inheritance: java.lang.Object, java.lang.Enum < TextReplaceOptions.FontSizeAdjustment > com.aspose.pdf.TextReplaceOptions.FontSizeAdjustment, java.lang.Enum < TextReplaceOptions.FontSizeAdjustment >, com.aspose.pdf.TextReplaceOptions.FontSizeAdjustment

All Implemented Interfaces: Serializable, Comparable < TextReplaceOptions.FontSizeAdjustment >

public static enum TextReplaceOptions.FontSizeAdjustment extends Enum < TextReplaceOptions.FontSizeAdjustment >

Specifies a policy for how the font size of text should be adjusted to fit within a containing area.

Fields

FieldDescription
NoneThe font size is not changed.
ScaleToFillThe font size is adjusted (both shrinking and growing) to make the text fill the bounds of the rectangle as much as possible.
ShrinkToFitThe font size is reduced if the text is too large to fit the bounds.

Methods

MethodDescription
getByValue
getValue
valueOfReturns the enum constant of this type with the specified name.
valuesReturns an array containing the constants of this enum type, in the order they are declared.

None

public static final TextReplaceOptions.FontSizeAdjustment None

The font size is not changed.

ScaleToFill

public static final TextReplaceOptions.FontSizeAdjustment ScaleToFill

The font size is adjusted (both shrinking and growing) to make the text fill the bounds of the rectangle as much as possible.

ShrinkToFit

public static final TextReplaceOptions.FontSizeAdjustment ShrinkToFit

The font size is reduced if the text is too large to fit the bounds.

getByValue

public static TextReplaceOptions.FontSizeAdjustment getByValue(int value)

getValue

public int getValue()

valueOf

Returns the enum constant of this type with the specified name.

values

public static TextReplaceOptions.FontSizeAdjustment [] values()

Returns an array containing the constants of this enum type, in the order they are declared.

Returns: an array containing the constants of this enum type, in the order they are declared