public final class ColumnCollection extends java.lang.Object implements IColumnCollection
Represents collection of columns in a table.
Modifier and Type | Method and Description |
---|---|
IColumn[] |
addClone(IColumn templ,
boolean withAttachedColumns)
Creates a copy of the specified template row and inserts it at the bottom of a table.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
|
IColumn |
get_Item(int index)
Returns the column at the specified index.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
IColumn[] |
insertClone(int index,
IColumn templ,
boolean withAttachedColumns)
Creates a copy of the specified template column and insert it at the specified position in a table.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IColumn> |
iterator()
Returns an enumerator that iterates through the collection.
|
void |
removeAt(int firstColumnIndex,
boolean withAttachedRows)
Removes a column at the specified position from a table.
|
int |
size()
Returns the number of columns in a collection.
|
public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.
public final int size()
Returns the number of columns in a collection.
Read-only int
.
size
in interface com.aspose.ms.System.Collections.ICollection<IColumn>
public final IColumn get_Item(int index)
Returns the column at the specified index.
Read-only Column
.
get_Item
in interface IColumnCollection
public final IColumn[] addClone(IColumn templ, boolean withAttachedColumns)
Creates a copy of the specified template row and inserts it at the bottom of a table.
addClone
in interface IColumnCollection
templ
- Column which is used as a template.withAttachedColumns
- True to copy also all columns attached to the template row.public final IColumn[] insertClone(int index, IColumn templ, boolean withAttachedColumns)
Creates a copy of the specified template column and insert it at the specified position in a table.
insertClone
in interface IColumnCollection
index
- Index of a new column.templ
- Column which is used as a template.withAttachedColumns
- True to copy also all columns attached to the template column.public final void removeAt(int firstColumnIndex, boolean withAttachedRows)
Removes a column at the specified position from a table.
removeAt
in interface IColumnCollection
firstColumnIndex
- Index of a column to delete.withAttachedRows
- True to delete also all attached columns.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IColumn> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IColumn>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<IColumn>
iterator
in interface java.lang.Iterable<IColumn>
System.Collections.Generic.IEnumerator`1
that can be used to iterate through the collection.public final void copyTo(com.aspose.ms.System.Array array, int index)
Copies all elements from the collection to the specified array.
copyTo
in interface com.aspose.ms.System.Collections.ICollection<IColumn>
array
- Target array.index
- Starting index in the target array.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean
.
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection<IColumn>
public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object
.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection<IColumn>