com.spire.doc.formatting
Class FormatBase

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.documents.xml.DocumentSerializable
          extended by com.spire.doc.formatting.FormatBase
All Implemented Interfaces:
IDocumentSerializable
Direct Known Subclasses:
AttrCollection

public abstract class FormatBase
extends DocumentSerializable


Constructor Summary
FormatBase()
          Initializes a new instance of the class.
FormatBase(FormatBase parent, int parentKey)
          Initializes a new instance of the class.
FormatBase(FormatBase parent, int parentKey, int parentOffset)
          Initializing constructor.
FormatBase(IDocument doc)
          Initializes a new instance of the class.
FormatBase(IDocument doc, DocumentObject owner)
          Initializes a new instance of the class.
 
Method Summary
 void clearBackground()
           
 void clearFormatting()
          Clears the formatting.
 boolean hasKey(int key)
          Checks if Key exists.
 boolean isDefault()
          Gets a value indicating whether format is default.
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 

Constructor Detail

FormatBase

public FormatBase()
Initializes a new instance of the class.


FormatBase

public FormatBase(IDocument doc)
Initializes a new instance of the class.

Parameters:
doc - The doc.

FormatBase

public FormatBase(IDocument doc,
                  DocumentObject owner)
Initializes a new instance of the class.

Parameters:
doc - The doc.
owner - The owner.

FormatBase

public FormatBase(FormatBase parent,
                  int parentKey)
Initializes a new instance of the class.

Parameters:
parent - The parent.
parentKey - The parent key.

FormatBase

public FormatBase(FormatBase parent,
                  int parentKey,
                  int parentOffset)
Initializing constructor.

Parameters:
parent - The parent.
parentKey - The parent key.
parentOffset - The parent offset.
Method Detail

isDefault

public boolean isDefault()
Gets a value indicating whether format is default.

Returns:
true if format is default; otherwise,false.

hasKey

public boolean hasKey(int key)
Checks if Key exists.

Parameters:
key - The key.
Returns:
if the specified key has key, set to true.

clearFormatting

public void clearFormatting()
Clears the formatting.


clearBackground

public void clearBackground()