public final class ColumnCollection extends DomObject<RowCollection> 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.
|
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.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IColumn> |
iteratorJava()
Returns a java iterator for the entire 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.
|
getParent_Immediatepublic 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 IColumnCollectionpublic 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 IColumnCollectiontempl - 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 IColumnCollectionindex - 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 IColumnCollectionfirstColumnIndex - 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>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IColumn> iteratorJava()
Returns a java iterator for the entire collection.
iteratorJava in interface IGenericCollection<IColumn>Iterator for the entire 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>Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.