stylecollection-ag凯发旗舰厅
com.spire.doc.collections
class stylecollection
java.lang.object
com.spire.doc.ownerholder
com.spire.doc.collections.collectionex
com.spire.doc.documents.xml.documentserializablecollection
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
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)