com.aspose.cells

Class ValidationCollection

  • java.lang.Object
  • All Implemented Interfaces:
    java.lang.Iterable
    public class ValidationCollection 
    extends CollectionBase

Represents data validation collection.

Property Getters/Setters Summary
intgetCount()
Validationget(intindex)
Gets the Validation element at the specified index.
 
Method Summary
intadd()
Adds a data validation to the collection.
intadd(CellArea ca)
Adds a data validation to the collection.
intadd(Validation validation)
Add a Validation to the collection.
intadd(java.lang.Objectvalue)
Reserved for internal use.
voidclear()
booleancontains(java.lang.Objectvalue)
Reserved for internal use.
java.lang.Objectget(intindex)
Reserved for internal use.
ValidationgetValidationInCell(introw, intcolumn)
Gets the validation applied to given cell.
intindexOf(java.lang.Objectvalue)
Reserved for internal use.
java.util.Iteratoriterator()
voidremoveACell(introw, intcolumn)
Removes all validation setting on the cell.
voidremoveArea(CellArea ca)
Removes all validation setting on the range..
voidremoveAt(intindex)
 

    • Property Getters/Setters Detail

      • getCount

        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. NOTE: This member is now obsolete. Instead, please use ValidationCollection.Add(CellArea) method. This property will be removed 12 months later since JANUARY 2015. Aspose apologizes for any inconvenience you may have experienced.
        Returns:
        Validation object index.
      • add

        public int add(CellArea ca)
        Adds a data validation to the collection.
        Parameters:
        ca - The area contains this validation.
        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 the validation applied to given cell.
        Parameters:
        row - The row index.
        column - The column index.
        Returns:
        Returns a Validation object or null if there is no validation for given cell
      • clear

        public void clear()
      • removeAt

        public void removeAt(int index)
      • iterator

        public java.util.Iterator iterator()
      • get

        public java.lang.Object get(int index)
        Reserved for internal use.
      • contains

        public boolean contains(java.lang.Object value)
        Reserved for internal use.
      • add

        public int add(java.lang.Object value)
        Reserved for internal use.
      • indexOf

        public int indexOf(java.lang.Object value)
        Reserved for internal use.