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


Method Summary
 int add(IStyle style)
          Adds Style to collection
 void applyDocDefaultsToNormalStyle()
          Deprecated. 
 IStyle findById(int styleId)
          Deprecated. 
 IStyle findByIdentifier(int sIdentifier)
          Finds Style by identifier The style identifier.
 IStyle findByIstd(int istd)
          Deprecated. 
 Style findByName(java.lang.String name)
          Finds Style by name
 IStyle findByName(java.lang.String name, StyleType styleType)
          Finds Style by id
 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 -
Returns:

add

public int add(IStyle style)
Adds Style to collection

Specified by:
add in interface IStyleCollection
Parameters:
style - The style.
Returns:

applyDocDefaultsToNormalStyle

@Deprecated
public void applyDocDefaultsToNormalStyle()
Deprecated. 

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:

findByName

public IStyle findByName(java.lang.String name,
                         StyleType styleType)
Finds Style by id

Specified by:
findByName in interface IStyleCollection
Parameters:
name - The name.
styleType - Type of the style.
Returns:

findById

@Deprecated
public IStyle findById(int styleId)
Deprecated. 

Finds Style by id

Parameters:
styleId - The style id.
Returns:

findByIstd

@Deprecated
public IStyle findByIstd(int istd)
Deprecated. 

Finds Style by istd.

Parameters:
istd - The style istd.
Returns:

findByIdentifier

public IStyle findByIdentifier(int sIdentifier)
Finds Style by identifier The style identifier. The parameter value is the enumeration value

Parameters:
Documents.DefaultTableStyle - enumeration value.
Returns: