ifont-ag凯发旗舰厅



com.spire.xls.core
interface ifont

all superinterfaces:
ioptimizedupdate
all known subinterfaces:
ichartdatalabels, ichartdatatable, icharttextarea
all known implementing classes:
chartdatalabels, chartdatatable, charttextarea, excelfont, fontarraywrapper, fontwrapper, xlschartdatalabelarea, xlschartdatalabels, xlschartdatatable, xlschartlegendarea, xlscharttitlearea, xlsfont

public interface ifont
extends ioptimizedupdate

method summary
 java.awt.font generatenativefont()
          generates .net font object corresponding to the current font.
 java.awt.color getcolor()
          gets / sets font color.
 java.lang.string getfontname()
          returns or sets the font name.
 excelcolors getknowncolor()
          returns or sets the primary color of the object, as shown in the following table.
 double getsize()
          returns or sets the size of the font.
 java.lang.string getstrikethroughtype()
          strikethrough type.
 fontunderlinetype getunderline()
          returns or sets the type of underline applied to the font.
 fontvertialalignmenttype getverticalalignment()
          gets / sets font vertical alignment.
 boolean isautocolor()
          indicates whether color is automatically selected.
 boolean isbold()
          true if the font is bold.
 void isbold(boolean value)
          true if the font is bold.
 boolean isitalic()
          true if the font style is italic.
 void isitalic(boolean value)
          true if the font style is italic.
 boolean isstrikethrough()
          true if the font is struck through with a horizontal line.
 void isstrikethrough(boolean value)
          true if the font is struck through with a horizontal line.
 boolean issubscript()
          true if the font is formatted as subscript.
 void issubscript(boolean value)
          true if the font is formatted as subscript.
 boolean issuperscript()
          true if the font is formatted as superscript.
 void issuperscript(boolean value)
          true if the font is formatted as superscript.
 void setcolor(java.awt.color value)
          gets / sets font color.
 void setfontname(java.lang.string value)
          returns or sets the font name.
 void setknowncolor(excelcolors value)
          returns or sets the primary color of the object, as shown in the following table.
 void setsize(double value)
          returns or sets the size of the font.
 void setstrikethroughtype(java.lang.string value)
          strikethrough type.
 void setunderline(fontunderlinetype value)
          returns or sets the type of underline applied to the font.
 void setverticalalignment(fontvertialalignmenttype value)
          gets / sets font vertical alignment.
 
methods inherited from interface com.spire.xls.core.interfacess.ioptimizedupdate
beginupdate, endupdate
 
method detail

isbold

boolean isbold()
true if the font is bold. read / write boolean.

isbold

void isbold(boolean value)
true if the font is bold. read / write boolean.

getknowncolor

excelcolors getknowncolor()
returns or sets the primary color of the object, as shown in the following table. use the rgb function to create a color value. read / write integer.

setknowncolor

void setknowncolor(excelcolors value)
returns or sets the primary color of the object, as shown in the following table. use the rgb function to create a color value. read / write integer.

getcolor

java.awt.color getcolor()
gets / sets font color. searches for the closestes color in the workbook palette.

setcolor

void setcolor(java.awt.color value)
gets / sets font color. searches for the closestes color in the workbook palette.

isitalic

boolean isitalic()
true if the font style is italic. read / write boolean.

isitalic

void isitalic(boolean value)
true if the font style is italic. read / write boolean.

getsize

double getsize()
returns or sets the size of the font. read / write variant.

setsize

void setsize(double value)
returns or sets the size of the font. read / write variant.

isstrikethrough

boolean isstrikethrough()
true if the font is struck through with a horizontal line. read / write boolean

isstrikethrough

void isstrikethrough(boolean value)
true if the font is struck through with a horizontal line. read / write boolean

issubscript

boolean issubscript()
true if the font is formatted as subscript. false by default. read / write boolean.

issubscript

void issubscript(boolean value)
true if the font is formatted as subscript. false by default. read / write boolean.

getstrikethroughtype

java.lang.string getstrikethroughtype()
strikethrough type. read / write sngstrike dblstrike

setstrikethroughtype

void setstrikethroughtype(java.lang.string value)
strikethrough type. read / write sngstrike dblstrike

issuperscript

boolean issuperscript()
true if the font is formatted as superscript. false by default. read/write boolean

issuperscript

void issuperscript(boolean value)
true if the font is formatted as superscript. false by default. read/write boolean

getunderline

fontunderlinetype getunderline()
returns or sets the type of underline applied to the font. can be one of the following fontunderlinetypestyle constants. read / write fontunderlinetype.

setunderline

void setunderline(fontunderlinetype value)
returns or sets the type of underline applied to the font. can be one of the following fontunderlinetypestyle constants. read / write fontunderlinetype.

getfontname

java.lang.string getfontname()
returns or sets the font name. read / write string.

setfontname

void setfontname(java.lang.string value)
returns or sets the font name. read / write string.

getverticalalignment

fontvertialalignmenttype getverticalalignment()
gets / sets font vertical alignment.

setverticalalignment

void setverticalalignment(fontvertialalignmenttype value)
gets / sets font vertical alignment.

isautocolor

boolean isautocolor()
indicates whether color is automatically selected. read-only.

generatenativefont

java.awt.font generatenativefont()
generates .net font object corresponding to the current font.
returns:
generated .net font.


网站地图