| Modifier and Type | Method and Description |
|---|---|
Column |
get(int index)
Gets the column at the specified index.
|
ColumnRange |
get(int left,
int right)
Gets a
ColumnRange object that can be used to manipulate the columns in the specified range. |
int |
getCount()
Gets the number of columns in the collection.
|
void |
insert(int index)
Inserts a new column at the specified index.
|
void |
insert(int index,
int count)
Inserts the specified number of columns at the specified index.
|
java.util.Iterator<Column> |
iterator()
Returns an object that iterates through the collection.
|
void |
move(int index,
int target)
Moves the specified column to the specified target index.
|
boolean |
move(int index,
int count,
int target)
Moves the specified number of columns to the specified target index.
|
void |
remove(int index)
Removes the column at the specified index.
|
void |
remove(int index,
int count)
Removes the specified number of columns at the specified index.
|
public java.util.Iterator<Column> iterator()
iterator in interface java.lang.Iterable<Column>Iterator that can be used to iterate through the collection.public void insert(int index)
This method will raise an IllegalArgumentException exception if the
operation would cause filled cells to be shifted beyond the sheet.
index - The zero-based index where the column should be inserted.public void insert(int index,
int count)
This method will raise an IllegalArgumentException exception if the
operation would cause filled cells to be shifted beyond the sheet.
index - The zero-based index where the columns should be inserted.count - The number of columns to insert.public void remove(int index)
index - The zero-based index of the column to remove.public void remove(int index,
int count)
index - The zero-based index of the first column to remove.count - The number of columns to remove.public void move(int index,
int target)
index - The zero-based index of the column to move.target - The zero-based index of the column before which the column should be moved.public boolean move(int index,
int count,
int target)
index - The zero-based index of the first column to move.count - The number of columns to move.target - The zero-based index of the column before which the columns should be moved.true if a move occurred; otherwise, false.public int getCount()
public Column get(int index)
index - The zero-based index of the column to get.Column object identifying the column at the specified position.public ColumnRange get(int left, int right)
ColumnRange object that can be used to manipulate the columns in the specified range.left - The zero-based index of the left column in the range.right - The zero-based index of the right column in the range.ColumnRange object that can be used to manipulate the columns in the range.