

'DeclarationPublic Class ColumnRange Inherits Xceed.Workbooks.NET.LinearRange(Of Column) Implements Xceed.Workbooks.NET.IRangeBase(Of Column)
'UsageDim instance As ColumnRange
public class ColumnRange : Xceed.Workbooks.NET.LinearRange<Column>, Xceed.Workbooks.NET.IRangeBase<Column>
using( var workbook = Workbook.Create( "ColumnRange.xlsx" ) ) { // Gets the first Worksheet; a Workbook always contains at least 1 Worksheet. var worksheet = workbook.Worksheets[ 0 ]; // Gets the Columns B, C and D. var columnRange = worksheet.Columns[ "B", "D" ]; // Sets the columnRange's Background color to yellow. columnRange.Style.Fill.BackgroundColor = Color.Yellow; // Saves Workbook to disk; workbook.Save(); }
System.Object
Xceed.Workbooks.NET.WorkbookElement
Xceed.Workbooks.NET.WorksheetElement
Xceed.Workbooks.NET.StyledWorksheetElement
Xceed.Workbooks.NET.StyledRange<T>
Xceed.Workbooks.NET.LinearRange<T>
Xceed.Workbooks.NET.ColumnRange
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of columns in the ColumnRange. (Inherited from Xceed.Workbooks.NET.LinearRange<Column>) |
![]() | Elements | Gets the items in the range. (Inherited from Xceed.Workbooks.NET.StyledRange<T>) |
![]() | EndingElement | Gets or sets the last item in the range. (Inherited from Xceed.Workbooks.NET.StyledRange<T>) |
![]() | IsHidden | Gets or sets if the Rows in the RowRange or the Columns in the ColumnRange are hidden are not. (Inherited from Xceed.Workbooks.NET.LinearRange<Column>) |
![]() | StartingElement | Gets or sets the first item in the range. (Inherited from Xceed.Workbooks.NET.StyledRange<T>) |
![]() | Style | Gets the Style used by the Worksheet element. (Inherited from Xceed.Workbooks.NET.StyledWorksheetElement) |
![]() | Width | Gets or sets the Width of all Columns in the range. |
| Name | Description | |
|---|---|---|
![]() | AutoFit | Overridden. Adjusts the Columns’ Width based on the Cell with the widest content in the ColumnRange. |
![]() | Clear | Removes specific elements from the LinearRange. (Inherited from Xceed.Workbooks.NET.LinearRange<Column>) |
![]() | Equals | (Inherited from Xceed.Workbooks.NET.LinearRange<Column>) |
![]() | GetHashCode | (Inherited from Xceed.Workbooks.NET.LinearRange<Column>) |
![]() | ReplaceContent | Searches into the content of the LinearRange and replaces all occurences of a specific value with a new value. (Inherited from Xceed.Workbooks.NET.LinearRange<Column>) |
![]() | ReplaceContents<TSearch,TNew> | Searches into the content of the LinearRange and replaces all instances of the searchValues with their corresponding newValues. (Inherited from Xceed.Workbooks.NET.LinearRange<Column>) |
![]() | ToString | (Inherited from Xceed.Workbooks.NET.LinearRange<Column>) |
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.