com.aspose.cells
Class ValidationCollection

java.lang.Object
  extended by CollectionBase
      extended by com.aspose.cells.ValidationCollection
All Implemented Interfaces:
com.aspose.cells.c.b.a.a.a.c.b.e

public class ValidationCollection 
extends CollectionBase

Represents data validation collection.

Property Getters/Setters Summary
intgetCount()→ inherited from com.aspose.cells.CollectionBase
          
Validationget(int index)
           Gets the Validation element at the specified index.
 
Method Summary
intadd()
           Adds a data validation to the collection.
intadd(Validation validation)
           Add a Validation to the collection.
intadd(java.lang.Object value)→ inherited from com.aspose.cells.CollectionBase
          Reserved for internal use.
voidclear()→ inherited from com.aspose.cells.CollectionBase
          
booleancontains(java.lang.Object value)→ inherited from com.aspose.cells.CollectionBase
          Reserved for internal use.
java.lang.Objectget(int index)→ inherited from com.aspose.cells.CollectionBase
          Reserved for internal use.
ValidationgetValidationInCell(int row, int column)
           Gets a Validation object in the cell.
intindexOf(java.lang.Object value)→ inherited from com.aspose.cells.CollectionBase
          Reserved for internal use.
java.util.Iteratoriterator()→ inherited from com.aspose.cells.CollectionBase
          
voidremoveACell(int row, int column)
           Removes all validation setting on the cell.
voidremoveArea(CellArea ca)
           Removes all validation setting on the range..
voidremoveAt(int index)→ inherited from com.aspose.cells.CollectionBase
          
 

Property Getters/Setters Detail

getCount

→ inherited from com.aspose.cells.CollectionBase
public int getCount()

get

public Validation get(int index)
Gets the Validation element at the specified index.
Parameters:
index - The zero based index of the element.
Returns:
The element at the specified index.

Method Detail

add

public int add()
Adds a data validation to the collection.
Returns:
Validation object index.

add

public int add(Validation validation)
Add a Validation to the collection.
Parameters:
validation - A validation object.
Returns:
Validation object index.

removeACell

public void removeACell(int row, int column)
Removes all validation setting on the cell.
Parameters:
row - The row index of the cell.
column - The column index of the cell.

removeArea

public void removeArea(CellArea ca)
Removes all validation setting on the range..
Parameters:
ca - The range which contains the validations setting.

getValidationInCell

public Validation getValidationInCell(int row, int column)
Gets a Validation object in the cell. Please call add(com.aspose.cells.Validation) method if you want to apply the modified validation to the cell.
Parameters:
row - The row index.
column - The column index.
Returns:
Returns a Validation object.

clear

→ inherited from com.aspose.cells.CollectionBase
public void clear()

removeAt

→ inherited from com.aspose.cells.CollectionBase
public void removeAt(int index)

iterator

→ inherited from com.aspose.cells.CollectionBase
public java.util.Iterator iterator()

get

→ inherited from com.aspose.cells.CollectionBase
public java.lang.Object get(int index)
Reserved for internal use.

contains

→ inherited from com.aspose.cells.CollectionBase
public boolean contains(java.lang.Object value)
Reserved for internal use.

add

→ inherited from com.aspose.cells.CollectionBase
public int add(java.lang.Object value)
Reserved for internal use.

indexOf

→ inherited from com.aspose.cells.CollectionBase
public int indexOf(java.lang.Object value)
Reserved for internal use.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.