liststyle-ag凯发旗舰厅
com.spire.doc.documents
class liststyle
java.lang.object
com.spire.doc.ownerholder
com.spire.doc.documents.xml.documentserializable
com.spire.doc.documents.style
com.spire.doc.documents.liststyle
- all implemented interfaces:
- irunattrsource, istyle
public class liststyle
- extends style
represents a liststyle.
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 |
liststyle
public liststyle(idocument doc,
listtype listtype)
- initializes a new instance of the liststyle class.
- parameters:
doc
- the doc.listtype
- type of the list.
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
- idocumentlisttype
- 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)