officefileapi-devexpress-dot-spreadsheet-dot-sortfieldbase.md
Gets or sets the offset within the range for the column by which the range is sorted.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
public int ColumnOffset { get; set; }
Public Property ColumnOffset As Integer
| Type | Description |
|---|---|
| Int32 |
The position of the column within the range referenced to the first column.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the ColumnOffset property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
// Sort a cell range by column "A" in ascending order.
sortField1.ColumnOffset = 0;
sortField1.Comparer = worksheet.Comparers.Ascending;
SortField sortField1 = new SortField();
sortField1.ColumnOffset = 0;
sortField1.Comparer = worksheet.Comparers.Ascending;
SortField sortField1 = new SortField();
sortField1.ColumnOffset = 0;
sortField1.Comparer = worksheet.Comparers.Ascending;
' Sort a cell range by column "A" in ascending order.
sortField1.ColumnOffset = 0
sortField1.Comparer = worksheet.Comparers.Ascending
Dim sortField1 As New SortField()
sortField1.ColumnOffset = 0
sortField1.Comparer = worksheet.Comparers.Ascending
Dim sortField1 As New SortField()
sortField1.ColumnOffset = 0
sortField1.Comparer = worksheet.Comparers.Ascending
See Also