Click or drag to resize

ExcelColumnCollection Class

Collection of ExcelColumn.
Inheritance Hierarchy
SystemObject
  SautinSoft.ExcelExcelCollectionBase
    SautinSoft.ExcelExcelLineCollectionBase
      SautinSoft.ExcelExcelColumnCollection

Namespace: SautinSoft.Excel
Assembly: SautinSoft.Excel (in SautinSoft.Excel.dll) Version: 2025.2.6
Syntax
public sealed class ExcelColumnCollection : ExcelLineCollectionBase

The ExcelColumnCollection type exposes the following members.

Properties
 NameDescription
Public propertyCount Gets the number of currently allocated elements.
(Inherited from ExcelCollectionBase)
Public propertyItemInt32 Gets the column with the specified index.
Public propertyItemString Gets the column with the specified name.
Top
Methods
 NameDescription
Public methodStatic memberColIndexToName Converts column index (0, 1, ...) to column name ("A", "B", ...).
Public methodStatic memberColNameToIndex Converts column name ("A", "B", ...) to column index (0, 1, ...).
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetEnumerator Returns an enumerator for the ExcelCollectionBase.
(Inherited from ExcelCollectionBase)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks

Notice: If you want to find last column occupied with data, use CalculateMaxUsedColumns method.

See Also