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(int index)
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(java.lang.Object value)
Reserved for internal use.
voidclear()
booleancontains(java.lang.Object value)
Reserved for internal use.
ValidationgetValidationInCell(int row, int column)
Gets the validation applied to given cell.
intindexOf(java.lang.Object value)
Reserved for internal use.
java.util.Iteratoriterator()
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)
 

    • 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.
      • 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()
      • 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.