com.aspose.cells

Class CheckBoxCollection

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

Represents a collection of CheckBox objects in a worksheet.

Example:

int index = excel.getWorksheets().get(0).getCheckBoxes().add(15, 15, 20, 100);
CheckBox checkBox = excel.getWorksheets().get(0).getCheckBoxes().get(index);
checkBox.setText("Check Box 1");

Property Getters/Setters Summary
intgetCount()
CheckBoxget(int index)
Gets the CheckBox element at the specified index.
 
Method Summary
intadd(int upperLeftRow, int upperLeftColumn, int height, int width)
Adds a checkBox to the collection.
intadd(java.lang.Object value)
Reserved for internal use.
voidclear()
booleancontains(java.lang.Object value)
Reserved for internal use.
intindexOf(java.lang.Object value)
Reserved for internal use.
java.util.Iteratoriterator()
voidremoveAt(int index)
 

    • Property Getters/Setters Detail

      • getCount

        public int getCount()
        
      • get

        public CheckBox get(int index)
        
        Gets the CheckBox 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(int upperLeftRow, int upperLeftColumn, int height, int width)
        Adds a checkBox to the collection.
        Parameters:
        upperLeftRow - Upper left row index.
        upperLeftColumn - Upper left column index.
        height - Height of checkBox, in unit of pixel.
        width - Width of checkBox, in unit of pixel.
        Returns:
        CheckBox object index.
      • 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.