Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate

com.aspose.cells
Class Validations

java.lang.Object
  extended by com.aspose.cells.Validations

public class Validations
extends java.lang.Object

Represents data validation collection.


Method Summary
 int add()
          Adds an empty data validation to the Validations.
 int add(int type, int alertStyle, int operator, java.lang.String formula1, java.lang.String formula2)
          Adds a data validation to the Validations.
 Validation get(int index)
          Gets validation object by index.
 int size()
          Gets number of the Validation objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public int add(int type,
               int alertStyle,
               int operator,
               java.lang.String formula1,
               java.lang.String formula2)
Adds a data validation to the Validations.

Parameters:
type - the validation data type.
alertStyle - the validation alert style.
operator - the operator for the data validation.
formula1 - the value or expression associated with the data validation.
formula2 - the value or expression associated with the data validation.
Returns:
Validation Object index.
Throws:
ExcelException - if Validations object has bean removed.
See Also:
Validation

add

public int add()
Adds an empty data validation to the Validations.

Returns:
Validation Object index.
Throws:
ExcelException - if Validations object has bean removed.

get

public Validation get(int index)
Gets validation object by index.

Parameters:
index - Validation object index.
Returns:
Validation object.
Throws:
java.lang.IllegalArgumentException - if index is out of range.
ExcelException - if Validations object has bean removed.

size

public int size()
Gets number of the Validation objects.

Returns:
Number of the Validation objects.