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.
| Enum Constant and Description |
|---|
None
The font size is not changed.
|
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
The font size is reduced if the text is too large to fit the bounds.
|
| Modifier and Type | Method and Description |
|---|---|
static TextReplaceOptions.FontSizeAdjustment |
getByValue(int value) |
int |
getValue() |
static TextReplaceOptions.FontSizeAdjustment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextReplaceOptions.FontSizeAdjustment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextReplaceOptions.FontSizeAdjustment None
The font size is not changed.
public static final TextReplaceOptions.FontSizeAdjustment ShrinkToFit
The font size is reduced if the text is too large to fit the bounds. The font size is never increased if the text is smaller than the bounds.
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.
public static TextReplaceOptions.FontSizeAdjustment[] values()
for (TextReplaceOptions.FontSizeAdjustment c : TextReplaceOptions.FontSizeAdjustment.values()) System.out.println(c);
public static TextReplaceOptions.FontSizeAdjustment valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
public static TextReplaceOptions.FontSizeAdjustment getByValue(int value)
Copyright © 2025 Aspose. All Rights Reserved.