com.spire.doc.documents
Class ListStyle

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.ListStyle
All Implemented Interfaces:
IDocumentSerializable, IStyle

public class ListStyle
extends Style

Represents a ListStyle.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.spire.doc.documents.Style
Style.BuiltinStyleLoader
 
Constructor Summary
ListStyle(IDocument doc, ListType listType)
          Initializes a new instance of the class.
 
Method Summary
static ListStyle createEmptyListStyle(IDocument doc, ListType listType, boolean isOneLevelList)
           
 IStyle deepClone()
          Clones itself
 ListLevelCollection getLevels()
          Gets list levels collection
 ListType getListType()
          Returns or setslist type
 ListLevel getNearLevel(int levelNumber)
           
 StyleType getStyleType()
          Gets the type of the style.
 void setListType(ListType value)
          Returns or setslist type
 
Methods inherited from class com.spire.doc.documents.Style
applyBaseStyle, applyBaseStyle, createBuiltinStyle, createBuiltinStyle, getCharacterFormat, getName, getStyleId, isCustomStyle, isCustomStyle, isHeading, nameToBuiltIn, setName
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 

Constructor Detail

ListStyle

public ListStyle(IDocument doc,
                 ListType listType)
Initializes a new instance of the class.

Parameters:
doc - The doc.
listType - Type of the list.
Method Detail

getListType

public ListType getListType()
Returns or setslist type


setListType

public void setListType(ListType value)
Returns or setslist type


getLevels

public ListLevelCollection getLevels()
Gets list levels collection


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.

createEmptyListStyle

public static ListStyle createEmptyListStyle(IDocument doc,
                                             ListType listType,
                                             boolean isOneLevelList)
Parameters:
doc -
listType - List type(bulleted or numbered)
isOneLevelList - Is it list that consist of 1 level only.
Returns:

deepClone

public IStyle deepClone()
Clones itself

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

getNearLevel

public ListLevel getNearLevel(int levelNumber)
Parameters:
levelNumber -
Returns: