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.Border
All Implemented Interfaces:
IDocumentSerializable

public class Border
extends AttrCollection


Constructor Summary
Border(FormatBase parent, int baseKey)
          Initializing constructor.
 
Method Summary
 BorderStyle getBorderType()
          Gets or sets style of the border.
 java.awt.Color getColor()
          Gets or sets color of the border.
 float getLineWidth()
          Gets or sets width of the border.
 boolean getShadow()
          Setting to define if border should be drawn with shadow.
 float getSpace()
          Returns or setswidth of space to maintain between border and text within border.
 void initFormatting(com.spire.ms.System.Drawing.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)
          Gets or sets style of the border.
 void setColor(java.awt.Color value)
          Gets or sets color of the border.
 void setLineWidth(float value)
          Gets or sets width of the border.
 void setShadow(boolean value)
          Setting to define if border should be drawn with shadow.
 void setSpace(float value)
          Returns or setswidth of space to maintain between border and text within border.
 
Methods inherited from class com.spire.doc.formatting.FormatBase
clearBackground, clearFormatting, hasKey
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 

Constructor Detail

Border

public Border(FormatBase parent,
              int baseKey)
Initializing constructor.

Parameters:
parent - The parent.
baseKey - The base key.
Method Detail

getColor

public java.awt.Color getColor()
Gets or sets color of the border.


setColor

public void setColor(java.awt.Color value)
Gets or sets color of the border.


getLineWidth

public float getLineWidth()
Gets or sets width of the border.


setLineWidth

public void setLineWidth(float value)
Gets or sets width of the border.


getBorderType

public BorderStyle getBorderType()
Gets or sets style of the border.


setBorderType

public void setBorderType(BorderStyle value)
Gets or sets style of the border.


getSpace

public float getSpace()
Returns or setswidth of space to maintain between border and text within border.


setSpace

public void setSpace(float value)
Returns or setswidth of space to maintain between border and text within border.


getShadow

public boolean getShadow()
Setting to define if border should be drawn with shadow.


setShadow

public void setShadow(boolean value)
Setting to define 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(com.spire.ms.System.Drawing.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.