
'Declaration
<DefaultMemberAttribute("Item")> Public Class ColumnCollection Inherits WorksheetElement
'Usage
Dim instance As ColumnCollection
[DefaultMember("Item")] public class ColumnCollection : WorksheetElement
using( var doc = Workbook.Load( "test.xlsx") ) { var worksheet = doc.Worksheets[ 0 ]; worksheet.Columns[ 1 ].Width = 25d; // Sets column’s “B” width. doc.Save(); }
System.Object
Xceed.Workbooks.NET.WorkbookElement
Xceed.Workbooks.NET.WorksheetElement
Xceed.Workbooks.NET.ColumnCollection
Name | Description | |
---|---|---|
![]() | Count | Gets the number of Columns in the ColumnCollection. |
![]() | Item | Overloaded. Gets the Column or ColumnRange corresponding to the given Ids or addresses. |
Name | Description | |
---|---|---|
![]() | AutoFit | Adjusts the Columns’ Width based on the Cell with the widest content in the ColumnRange. |
![]() | GetEnumerator |
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2