border-ag凯发旗舰厅



com.spire.doc.formatting
class border

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.documents.xml.documentserializable
          extended by com.spire.doc.formatting.formatbase
              extended by com.spire.doc.formatting.attrcollection
                  extended by com.spire.doc.formatting.wordattrcollection
                      extended by com.spire.doc.formatting.border

public class border
extends wordattrcollection

constructor summary
border(formatbase parent, int basekey)
          initializing constructor.
 
method summary
 borderstyle getbordertype()
          gets style of the border.
 java.awt.color getcolor()
          gets color of the border.
 float getlinewidth()
          gets width of the border.
 boolean getshadow()
          gets the definition if border should be drawn with shadow.
 float getspace()
          returns width of space to maintain between border and text within border.
 void initformatting(java.awt.color color, float linewidth, borderstyle bordertype, boolean shadow)
          initialize border style.
 boolean isdefault()
          gets a value indicating whether format is default.
 void setbordertype(borderstyle value)
          sets style of the border.
 void setcolor(java.awt.color value)
          sets color of the border.
 void setlinewidth(float value)
          sets width of the border.
 void setshadow(boolean value)
          sets the definition if border should be drawn with shadow.
 void setspace(float value)
          sets width of space to maintain between border and text within border.
 
methods inherited from class com.spire.doc.formatting.formatbase
clearformatting, haskey
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
constructor detail

border

public border(formatbase parent,
              int basekey)
initializing constructor.
parameters:
parent - parent
basekey - basekey
method detail

getcolor

public java.awt.color getcolor()
gets color of the border.

setcolor

public void setcolor(java.awt.color value)
sets color of the border.

getlinewidth

public float getlinewidth()
gets width of the border.

setlinewidth

public void setlinewidth(float value)
sets width of the border.

getbordertype

public borderstyle getbordertype()
gets style of the border.
returns:
borderstyle

setbordertype

public void setbordertype(borderstyle value)
sets style of the border.
parameters:
value - borderstyle

getspace

public float getspace()
returns width of space to maintain between border and text within border.

setspace

public void setspace(float value)
sets width of space to maintain between border and text within border.

getshadow

public boolean getshadow()
gets the definition if border should be drawn with shadow.

setshadow

public void setshadow(boolean value)
sets the definition if border should be drawn with shadow.

isdefault

public boolean isdefault()
gets a value indicating whether format is default.
overrides:
isdefault in class formatbase
returns:
true if format is default; otherwise,false.

initformatting

public void initformatting(java.awt.color color,
                           float linewidth,
                           borderstyle bordertype,
                           boolean shadow)
initialize border style.
parameters:
color - the color.
linewidth - width of the line.
bordertype - type of the border.
shadow - if it specifies shadow, set to true.


网站地图