com.spire.doc.documents
Class ParagraphStyle

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.documents.xml.DocumentSerializable
          extended by com.spire.doc.documents.Style
              extended by com.spire.doc.documents.ParagraphStyle
All Implemented Interfaces:
IDocumentSerializable, IParagraphStyle, IStyle

public class ParagraphStyle
extends Style
implements IParagraphStyle

Represents a style of paragraph.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.spire.doc.documents.Style
Style.BuiltinStyleLoader
 
Constructor Summary
ParagraphStyle(IDocument doc)
          Initializes a new instance of the class.
 
Method Summary
 void applyBaseStyle(java.lang.String styleName)
          Apply base style for current style.
 IStyle deepClone()
          Clones itself
 ParagraphStyle getBaseStyle()
          Gets a base style of paragraph.
 ListFormat getListFormat()
          Gets format of the list for the paragraph.
 ParagraphFormat getParagraphFormat()
          Gets formatting of paragraph.
 StyleType getStyleType()
          Gets the type of the style.
 
Methods inherited from class com.spire.doc.documents.Style
applyBaseStyle, createBuiltinStyle, createBuiltinStyle, getCharacterFormat, getName, getStyleId, isCustomStyle, isCustomStyle, isHeading, nameToBuiltIn, setName
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 
Methods inherited from interface com.spire.doc.interfaces.IParagraphStyle
getCharacterFormat
 
Methods inherited from interface com.spire.doc.interfaces.IStyle
getName, getStyleId, setName
 

Constructor Detail

ParagraphStyle

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

Parameters:
doc - The doc.
Method Detail

getParagraphFormat

public ParagraphFormat getParagraphFormat()
Gets formatting of paragraph.

Specified by:
getParagraphFormat in interface IParagraphStyle
Returns:

getBaseStyle

public ParagraphStyle getBaseStyle()
Gets a base style of paragraph.

Overrides:
getBaseStyle in class Style

getStyleType

public StyleType getStyleType()
Gets the type of the style.

Specified by:
getStyleType in interface IStyle
Specified by:
getStyleType in class Style
Returns:
The type of the style.

getListFormat

public ListFormat getListFormat()
Gets format of the list for the paragraph.


applyBaseStyle

public void applyBaseStyle(java.lang.String styleName)
Apply base style for current style.

Overrides:
applyBaseStyle in class Style
Parameters:
styleName -

deepClone

public IStyle deepClone()
Clones itself

Specified by:
deepClone in interface IStyle
Specified by:
deepClone in class Style
Returns: