com.spire.doc.formatting
Class ListFormat

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

public class ListFormat
extends WordAttrCollection


Constructor Summary
ListFormat(Document doc, ParagraphStyle owner)
          Initializes a new instance of the class.
ListFormat(IParagraph owner)
          Initializes a new instance of the class.
 
Method Summary
 void applyBulletStyle()
          Apply default bullet style for current paragraph.
 void applyNumberedStyle()
          Apply default numbered style for current paragraph.
 void applyStyle(java.lang.String styleName)
          Apply list style.
 void continueListNumbering()
          Continue last list.
 void decreaseIndentLevel()
          Decrease level indent.
 ListLevel getCurrentListLevel()
          Gets paragraph's ListLevel.
 ListStyle getCurrentListStyle()
          Gets paragraph's list style.
 java.lang.String getCustomStyleName()
          Gets the name of custom style.
 int getListLevelNumber()
          Returns or sets list nesting level.
 ListType getListType()
          Gets type of the list.
 void increaseIndentLevel()
          Increase level indent.
 boolean isRestartNumbering()
          Returns or sets whether numbering of the list must restart from previous list.
 void isRestartNumbering(boolean value)
          Returns or sets whether numbering of the list must restart from previous list.
 void removeList()
          Removes the list from current paragraph.
 void setListLevelNumber(int value)
          Returns or sets list nesting level.
 
Methods inherited from class com.spire.doc.formatting.FormatBase
clearBackground, clearFormatting, hasKey, isDefault
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 

Constructor Detail

ListFormat

public ListFormat(IParagraph owner)
Initializes a new instance of the class.

Parameters:
owner - The owner (paragraph).

ListFormat

public ListFormat(Document doc,
                  ParagraphStyle owner)
Initializes a new instance of the class.

Parameters:
doc - The document.
owner - The owner.
Method Detail

getListLevelNumber

public int getListLevelNumber()
Returns or sets list nesting level.


setListLevelNumber

public void setListLevelNumber(int value)
Returns or sets list nesting level.


getListType

public ListType getListType()
Gets type of the list.


isRestartNumbering

public boolean isRestartNumbering()
Returns or sets whether numbering of the list must restart from previous list.


isRestartNumbering

public void isRestartNumbering(boolean value)
Returns or sets whether numbering of the list must restart from previous list.


getCustomStyleName

public java.lang.String getCustomStyleName()
Gets the name of custom style.


getCurrentListStyle

public ListStyle getCurrentListStyle()
Gets paragraph's list style.


getCurrentListLevel

public ListLevel getCurrentListLevel()
Gets paragraph's ListLevel.


increaseIndentLevel

public void increaseIndentLevel()
Increase level indent.


decreaseIndentLevel

public void decreaseIndentLevel()
Decrease level indent.


continueListNumbering

public void continueListNumbering()
Continue last list.


applyStyle

public void applyStyle(java.lang.String styleName)
Apply list style.

Parameters:
styleName - The list style name.

applyBulletStyle

public void applyBulletStyle()
Apply default bullet style for current paragraph.


applyNumberedStyle

public void applyNumberedStyle()
Apply default numbered style for current paragraph.


removeList

public void removeList()
Removes the list from current paragraph.