|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.doc.OwnerHolder
com.spire.doc.collections.CollectionEx
com.spire.doc.documents.xml.DocumentSerializableCollection
com.spire.doc.collections.StyleCollection
public class StyleCollection
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 |
---|
public IStyle get(int index)
get
in interface IStyleCollection
index
- int
public int add(IStyle style)
add
in interface IStyleCollection
style
- The style.
public void applyDocDefaultsToNormalStyle()
public Style findByName(java.lang.String name)
findByName
in interface IStyleCollection
name
- The name.
public IStyle findByName(java.lang.String name, StyleType styleType)
findByName
in interface IStyleCollection
name
- The name.styleType
- Type of the style.
public IStyle findById(int styleId)
styleId
- The style id.
public IStyle findByIstd(int istd)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |