com.spire.xls.core.spreadsheet.collections
Class XlsAddInFunctionsCollection

java.lang.Object
  extended by com.spire.ms.System.Collections.CollectionBase
      extended by com.spire.xls.core.spreadsheet.collections.CollectionExtended
          extended by com.spire.xls.core.spreadsheet.collections.XlsAddInFunctionsCollection
All Implemented Interfaces:
com.spire.ms.System.Collections.ICollection, com.spire.ms.System.Collections.IEnumerable, IAddInFunctions, java.lang.Iterable
Direct Known Subclasses:
AddInFunctionsCollection

public class XlsAddInFunctionsCollection
extends CollectionExtended
implements IAddInFunctions

Summary description for AddInFunctionsCollection.


Constructor Summary
XlsAddInFunctionsCollection(java.lang.Object parent)
           
 
Method Summary
 int add(java.lang.String functionName)
          Adds new add-in function.
 int add(java.lang.String fileName, java.lang.String functionName)
          Adds new add-in function.
 boolean contains(java.lang.String workbookName)
          Indicates whether collection contains workbook with specified name.
 IAddInFunction get(int index)
           
 void removeAt(int index)
          Removes add-in function with specified index.
 
Methods inherited from interface com.spire.xls.core.IAddInFunctions
size
 

Constructor Detail

XlsAddInFunctionsCollection

public XlsAddInFunctionsCollection(java.lang.Object parent)
Method Detail

get

public IAddInFunction get(int index)
Specified by:
get in interface IAddInFunctions

add

public int add(java.lang.String fileName,
               java.lang.String functionName)
Adds new add-in function.

Specified by:
add in interface IAddInFunctions
Parameters:
fileName - File name.
functionName - Function name.
Returns:
Index of the new function.
Throws:
com.spire.ms.System.Exception

add

public int add(java.lang.String functionName)
Adds new add-in function.

Specified by:
add in interface IAddInFunctions
Parameters:
functionName - Function to add.
Returns:
Index of the added function.

removeAt

public void removeAt(int index)
Removes add-in function with specified index.

Overrides:
removeAt in class com.spire.ms.System.Collections.CollectionBase
Parameters:
index - Item index to remove.

contains

public boolean contains(java.lang.String workbookName)
Indicates whether collection contains workbook with specified name.

Parameters:
workbookName - Name to check.
Returns:
True if collections contains book with specified name.