borders-ag凯发旗舰厅



com.spire.doc.documents
class borders

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.documents.borders

public class borders
extends wordattrcollection

represents a collection of four borders. border


field summary
static int bottom_key
          constant value for bottom key.
static int diagonal_down_key
          constant value for diagonal down key.
static int diagonal_up_key
          constant value for diagonal up key.
static int horizontal_key
          constant value for horizontal key.
static int left_key
          constant value for left key.
static int right_key
          constant value for right key.
static int top_key
          constant value for top key.
static int vertical_key
          constant value for vertical key.
 
constructor summary
borders()
          initializes a new instance of the border class.
 
method summary
 borders deepclone()
          clones self.
 border getbottom()
          gets bottom border.
 border getdiagonaldown()
          gets cell's diagonal border from top left corner to bottom right corner.
 border getdiagonalup()
          gets cell's diagonal border from bottom left corner to top right corner.
 border gethorizontal()
          gets horizontal border.
 border getleft()
          gets left border.
 boolean getnoborder()
          gets whether the border exists
 border getright()
          gets right border.
 border gettop()
          gets top border.
 border getvertical()
          gets vertical border.
 boolean isdefault()
          gets a value indicating whether format is default.
 void isshadow(boolean value)
          sets whether borders are drawn with shadow.
 void setbordertype(borderstyle value)
          sets style of the borders.
 void setcolor(java.awt.color value)
          sets color of the borders.
 void setlinewidth(float value)
          sets width of the borders.
 void setspace(float value)
          sets width of space to maintain between borders and text within borders.
 
methods inherited from class com.spire.doc.formatting.formatbase
clearformatting, haskey
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
field detail

left_key

public static final int left_key
constant value for left key.
see also:
constant field values

top_key

public static final int top_key
constant value for top key.
see also:
constant field values

bottom_key

public static final int bottom_key
constant value for bottom key.
see also:
constant field values

right_key

public static final int right_key
constant value for right key.
see also:
constant field values

vertical_key

public static final int vertical_key
constant value for vertical key.
see also:
constant field values

horizontal_key

public static final int horizontal_key
constant value for horizontal key.
see also:
constant field values

diagonal_down_key

public static final int diagonal_down_key
constant value for diagonal down key.
see also:
constant field values

diagonal_up_key

public static final int diagonal_up_key
constant value for diagonal up key.
see also:
constant field values
constructor detail

borders

public borders()
initializes a new instance of the border class.
method detail

getnoborder

public boolean getnoborder()
gets whether the border exists
returns:
boolean

getleft

public border getleft()
gets left border.
returns:
border object

gettop

public border gettop()
gets top border.
returns:
border object

getright

public border getright()
gets right border.
returns:
border object

getbottom

public border getbottom()
gets bottom border.
returns:
border object

getvertical

public border getvertical()
gets vertical border.
returns:
border object

gethorizontal

public border gethorizontal()
gets horizontal border.
returns:
border object

getdiagonaldown

public border getdiagonaldown()
gets cell's diagonal border from top left corner to bottom right corner.
returns:
border object

getdiagonalup

public border getdiagonalup()
gets cell's diagonal border from bottom left corner to top right corner.
returns:
border object

setcolor

public void setcolor(java.awt.color value)
sets color of the borders.
parameters:
value - color

setlinewidth

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

setbordertype

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

setspace

public void setspace(float value)
sets width of space to maintain between borders and text within borders.
parameters:
value - float

isshadow

public void isshadow(boolean value)
sets whether borders are drawn with shadow.
parameters:
value - boolean

isdefault

public boolean isdefault()
gets a value indicating whether format is default.
overrides:
isdefault in class formatbase
returns:
boolean

deepclone

public borders deepclone()
clones self.
overrides:
deepclone in class attrcollection
returns:
borders


网站地图