public class FontUnit
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static FontUnit |
Empty
Specifies an empty FontUnit.
|
static FontUnit |
Large
Specifies a FontUnit with LARGE font.
|
static FontUnit |
Larger
Specifies a FontUnit with Larger font.
|
static FontUnit |
Medium
Specifies a FontUnit with MEDIUM font.
|
static FontUnit |
Small
Specifies a FontUnit with SMALL font.
|
static FontUnit |
Smaller
Specifies a FontUnit with Smaller font.
|
static FontUnit |
XLarge
Specifies a FontUnit with X_LARGE font.
|
static FontUnit |
XSmall
Specifies a FontUnit with X_SMALL font.
|
static FontUnit |
XXLarge
Specifies a FontUnit with XX_LARGE font.
|
static FontUnit |
XXSmall
Specifies a FontUnit with XX_SMALL font.
|
| Constructor and Description |
|---|
FontUnit()
The default constructor .
|
FontUnit(double value)
Initializes a new instance of the FontUnit class with the specified font size in points.
|
FontUnit(double value,
int type)
Initializes a new instance of the FontUnit class with the specified font size and UnitType value.
|
FontUnit(int value)
Initializes a new instance of the FontUnit class with the specified font size.
|
FontUnit(java.lang.String value)
Initializes a new instance of the FontUnit class with the specified string.
|
FontUnit(Unit value)
Initializes a new instance of the FontUnit class with the specified Unit.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getType()
returns the font size type.
|
Unit |
getUnit()
Gets a Unit that represents the font size.
|
boolean |
isEmpty()
check whether the font size is empty or not.
|
static FontUnit |
parse(java.lang.String s)
Converts the specified string to its FontUnit equivalent.
|
static FontUnit |
point(int n)
Creates a FontUnit of type Point from an integer value.
|
java.lang.String |
toString()
Converts the FontUnit object to a string representation.
|
public static FontUnit Empty
public static FontUnit Smaller
public static FontUnit Larger
public static FontUnit XXSmall
public static FontUnit XSmall
public static FontUnit Small
public static FontUnit Medium
public static FontUnit Large
public static FontUnit XLarge
public static FontUnit XXLarge
public FontUnit()
public FontUnit(int value)
public FontUnit(double value)
public FontUnit(double value,
int type)
public FontUnit(Unit value)
public FontUnit(java.lang.String value)
public boolean isEmpty()
public int getType()
public Unit getUnit()
public static FontUnit parse(java.lang.String s)
public static FontUnit point(int n)
public java.lang.String toString()
toString in class java.lang.ObjectSee Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.