public static enum Measure.NumberFormat.FractionStyle extends Enum<Measure.NumberFormat.FractionStyle>
Value which indicates in which manner fraction values are displayed.
Enum Constant and Description |
---|
Round
Round fractional values to the nearest whole integer.
|
ShowAsDecimal
Show fractional values as decimal fraction.
|
ShowAsFraction
Show fractional value as fraction.
|
Truncate
Truncate to achieve whole units.
|
Modifier and Type | Method and Description |
---|---|
static Measure.NumberFormat.FractionStyle |
getByValue(int value) |
int |
getValue() |
static Measure.NumberFormat.FractionStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Measure.NumberFormat.FractionStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Measure.NumberFormat.FractionStyle ShowAsDecimal
Show fractional values as decimal fraction.
public static final Measure.NumberFormat.FractionStyle ShowAsFraction
Show fractional value as fraction.
public static final Measure.NumberFormat.FractionStyle Round
Round fractional values to the nearest whole integer.
public static final Measure.NumberFormat.FractionStyle Truncate
Truncate to achieve whole units.
public static Measure.NumberFormat.FractionStyle[] values()
for (Measure.NumberFormat.FractionStyle c : Measure.NumberFormat.FractionStyle.values()) System.out.println(c);
public static Measure.NumberFormat.FractionStyle 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 Measure.NumberFormat.FractionStyle getByValue(int value)
Copyright © 2025 Aspose. All Rights Reserved.