ColumnCollection
Source: aspose.
Collection of the Column objects that represent the individual column(setting)s in a worksheet. The Column object only represents the settings such as column width, styles, .etc. for the whole column, has nothing to do with the fact that there are non-empty cells(data) or not in corresponding column. And the "Count" of this collection only represents the count Column objects that have been instantiated in this collection, has nothing to do with the fact that there are non-empty cells(data) or not in the worksheet.
Methods
add()
Reserved for internal use.
clear()
contains()
Reserved for internal use.
get()
Gets a Column object by column index. The Column object of given column index will be instantiated if it does not exist before.
get()
Reserved for internal use.
getByIndex(index) → Column
Gets the column object by the index. NOTE: This member is now obsolete. Instead, please use Columns.GetColumnByIndex() method. This property will be removed 12 months later since June 2010. Aspose apologizes for any inconvenience you may have experienced.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
index |
Number |
|
- Returns
-
Column
Returns the column object.
getColumnByIndex(index) → Column
Gets the Column object by the position in the list.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
index |
Number |
|
The position in the list. |
- Returns
-
Column
Returns the column object.
getCount()
indexOf()
Reserved for internal use.