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
| Field | 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. |
Methods
| Method | Description |
|---|---|
| getByValue | |
| getValue | |
| valueOf | Returns the enum constant of this type with the specified name. |
| values | Returns 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