stylecollection-ag凯发旗舰厅



com.spire.doc.collections
class stylecollection

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.collections.collectionex
          extended by com.spire.doc.documents.xml.documentserializablecollection
              extended by com.spire.doc.collections.stylecollection
all implemented interfaces:
icollectionbase, istylecollection, ixdlsserializablecollection, java.lang.iterable

public class stylecollection
extends documentserializablecollection
implements istylecollection

represents a collection of style


method summary
 int add(istyle style)
          adds style to collection
 void applydocdefaultstonormalstyle()
          applys the document default paragraph format and character format to normal style.
 istyle findbyid(int styleid)
          finds style by id
 istyle findbyistd(int istd)
           
 style findbyname(java.lang.string name)
          finds style by name
 istyle findbyname(java.lang.string name, styletype styletype)
          finds style by name
 istyle get(int index)
          gets the at the specified index.
 
methods inherited from class com.spire.doc.collections.collectionex
getcount, iterator
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
methods inherited from interface com.spire.doc.interfaces.icollectionbase
getcount
 
methods inherited from interface com.spire.doc.interfaces.ixdlsserializablecollection
addnewitem, getcount, gettagitemnameex
 
method detail

get

public istyle get(int index)
gets the at the specified index.
specified by:
get in interface istylecollection
parameters:
index - int
returns:
istyle object

add

public int add(istyle style)
adds style to collection
specified by:
add in interface istylecollection
parameters:
style - the style.
returns:
int value

applydocdefaultstonormalstyle

public void applydocdefaultstonormalstyle()
applys the document default paragraph format and character format to normal style.

findbyname

public style findbyname(java.lang.string name)
finds style by name
specified by:
findbyname in interface istylecollection
parameters:
name - the name.
returns:
style object

findbyname

public istyle findbyname(java.lang.string name,
                         styletype styletype)
finds style by name
specified by:
findbyname in interface istylecollection
parameters:
name - the name.
styletype - type of the style.
returns:
istyle object

findbyid

public istyle findbyid(int styleid)
finds style by id
parameters:
styleid - the style id.
returns:
istyle object

findbyistd

public istyle findbyistd(int istd)


网站地图