liststyle-ag凯发旗舰厅



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:
irunattrsource, istyle

public class liststyle
extends style

represents a liststyle.


constructor summary
liststyle(idocument doc, listtype listtype)
          initializes a new instance of the liststyle 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 the listtype
 listlevel getnearlevel(int levelnumber)
           
 styletype getstyletype()
          gets the type of the style.
 void setlisttype(listtype value)
          setslist the listtype
 
methods inherited from class com.spire.doc.documents.style
applybasestyle, applybasestyle, clearrunattrs, createbuiltinstyle, createbuiltinstyle, fetchinheritedrunattr, getcharacterformat, getdefaultstyletype, getdirectrunattr, getdirectrunattrbyindex, getdirectrunattrscount, getname, getstyleid, iscustomstyle, iscustomstyle, nametobuiltin, setname, setrunattr
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
constructor detail

liststyle

public liststyle(idocument doc,
                 listtype listtype)
initializes a new instance of the liststyle class.
parameters:
doc - the doc.
listtype - type of the list.
method detail

getlisttype

public listtype getlisttype()
returns the listtype
returns:
listtype

setlisttype

public void setlisttype(listtype value)
setslist the listtype
parameters:
value - listtype

getlevels

public listlevelcollection getlevels()
gets list levels collection
returns:
listlevelcollection

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 - idocument
listtype - list type(bulleted or numbered)
isonelevellist - is it list that consist of 1 level only.
returns:
liststyle

deepclone

public istyle deepclone()
clones itself
specified by:
deepclone in interface istyle
specified by:
deepclone in class style
returns:
istyle

getnearlevel

public listlevel getnearlevel(int levelnumber)


网站地图