excelfont-ag凯发旗舰厅



com.spire.xls
class excelfont

java.lang.object
  extended by com.spire.xls.excelfont
all implemented interfaces:
ifont, ioptimizedupdate

public class excelfont
extends java.lang.object
implements ifont

represents the excel font.


constructor summary
excelfont(ifont font)
           
 
method summary
 void beginupdate()
          this method should be called before several updates to the object will take place.
 void endupdate()
          this method should be called after several updates to the object took place.
 java.awt.font generatenativefont()
          generates system font object.
 java.awt.color getcolor()
          returns the primary color of the font.
 java.lang.string getfontname()
          returns the font name.
 excelcolors getknowncolor()
          returns the primary excel color of the object.
 java.lang.object getparent()
           
 double getsize()
          returns the size of the font.
 java.lang.string getstrikethroughtype()
          strikethrough type.
 fontunderlinetype getunderline()
          returns the type of underline applied to the font.
 fontvertialalignmenttype getverticalalignment()
          gets font vertical alignment.
 boolean isautocolor()
          indicates whether color is automatically selected.
 boolean isbold()
          returns true if the font is bold.
 void isbold(boolean isbold)
          sets if the font is bold.
 boolean isitalic()
          return true if the font style is italic.
 void isitalic(boolean isitalic)
          sets if the font style is italic.
 boolean isstrikethrough()
          return true if the font is struck through with a horizontal line.
 void isstrikethrough(boolean value)
          sets 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 color)
          sets the primary color of the font.
 void setfontname(java.lang.string fontname)
          sets the font name.
 void setknowncolor(excelcolors knowncolor)
          sets the primary excel color of the object.
 void setsize(double size)
          sets the size of the font.
 void setstrikethroughtype(java.lang.string value)
          strikethrough type.
 void setunderline(fontunderlinetype underline)
          sets the type of underline applied to the font.
 void setverticalalignment(fontvertialalignmenttype value)
          sets font vertical alignment.
 
constructor detail

excelfont

public excelfont(ifont font)
method detail

isitalic

public boolean isitalic()
return true if the font style is italic. read boolean.
specified by:
isitalic in interface ifont

isitalic

public void isitalic(boolean isitalic)
sets if the font style is italic. write boolean.
specified by:
isitalic in interface ifont

getknowncolor

public excelcolors getknowncolor()
returns the primary excel color of the object.
specified by:
getknowncolor in interface ifont
returns:
excel colors

setknowncolor

public void setknowncolor(excelcolors knowncolor)
sets the primary excel color of the object.
specified by:
setknowncolor in interface ifont

getcolor

public java.awt.color getcolor()
returns the primary color of the font.
specified by:
getcolor in interface ifont
returns:

setcolor

public void setcolor(java.awt.color color)
sets the primary color of the font.
specified by:
setcolor in interface ifont

isbold

public boolean isbold()
returns true if the font is bold.
specified by:
isbold in interface ifont

isbold

public void isbold(boolean isbold)
sets if the font is bold.
specified by:
isbold in interface ifont

getfontname

public java.lang.string getfontname()
returns the font name. read / write string.
specified by:
getfontname in interface ifont
returns:
font name

setfontname

public void setfontname(java.lang.string fontname)
sets the font name. write string.
specified by:
setfontname in interface ifont

getsize

public double getsize()
returns the size of the font. read / write integer.
specified by:
getsize in interface ifont
returns:
font size

setsize

public void setsize(double size)
sets the size of the font. write integer.
specified by:
setsize in interface ifont

isstrikethrough

public boolean isstrikethrough()
return true if the font is struck through with a horizontal line. read / write boolean
specified by:
isstrikethrough in interface ifont

isstrikethrough

public void isstrikethrough(boolean value)
sets if the font is struck through with a horizontal line. read / write boolean
specified by:
isstrikethrough in interface ifont

getstrikethroughtype

public java.lang.string getstrikethroughtype()
description copied from interface: ifont
strikethrough type. read / write sngstrike dblstrike
specified by:
getstrikethroughtype in interface ifont

setstrikethroughtype

public void setstrikethroughtype(java.lang.string value)
description copied from interface: ifont
strikethrough type. read / write sngstrike dblstrike
specified by:
setstrikethroughtype in interface ifont

issubscript

public boolean issubscript()
true if the font is formatted as subscript. false by default. read / write boolean.
specified by:
issubscript in interface ifont

issubscript

public void issubscript(boolean value)
true if the font is formatted as subscript. false by default. read / write boolean.
specified by:
issubscript in interface ifont

issuperscript

public boolean issuperscript()
true if the font is formatted as superscript. false by default. read/write boolean
specified by:
issuperscript in interface ifont

issuperscript

public void issuperscript(boolean value)
true if the font is formatted as superscript. false by default. read/write boolean
specified by:
issuperscript in interface ifont

isautocolor

public boolean isautocolor()
indicates whether color is automatically selected. read-only.
specified by:
isautocolor in interface ifont

getunderline

public fontunderlinetype getunderline()
returns the type of underline applied to the font.
specified by:
getunderline in interface ifont

setunderline

public void setunderline(fontunderlinetype underline)
sets the type of underline applied to the font.
specified by:
setunderline in interface ifont

getverticalalignment

public fontvertialalignmenttype getverticalalignment()
gets font vertical alignment.
specified by:
getverticalalignment in interface ifont
returns:

setverticalalignment

public void setverticalalignment(fontvertialalignmenttype value)
sets font vertical alignment.
specified by:
setverticalalignment in interface ifont

generatenativefont

public java.awt.font generatenativefont()
generates system font object.
specified by:
generatenativefont in interface ifont
returns:
font object.

getparent

public java.lang.object getparent()

beginupdate

public void beginupdate()
this method should be called before several updates to the object will take place.
specified by:
beginupdate in interface ioptimizedupdate

endupdate

public void endupdate()
this method should be called after several updates to the object took place.
specified by:
endupdate in interface ioptimizedupdate


网站地图