Class TableSortLayer
Table sort layer
Inherited Members
Namespace: OfficeOpenXml.Sorting
Assembly: EPPlus.dll
Syntax
public class TableSortLayer : SortLayerBase
Methods
Column(Int32)
Sorts by the column that corresponds to the column
(zerobased) with ascending sort direction
Declaration
public TableSortLayerBuilder Column(int column)
Parameters
Type | Name | Description |
---|---|---|
System. |
column | The column to sort |
Returns
Type | Description |
---|---|
Table |
A Table |
Column(Int32, eSortOrder)
Sorts by the column that corresponds to the column
(zerobased) using the supplied sort direction.
Declaration
public TableSortLayerBuilder Column(int column, eSortOrder sortOrder)
Parameters
Type | Name | Description |
---|---|---|
System. |
column | The column to sort |
e |
sortOrder | Ascending or Descending sort |
Returns
Type | Description |
---|---|
Table |
A Table |
ColumnNamed(String)
Sorts by the column that corresponds to the columnName
ith ascending sort direction
Declaration
public TableSortLayerBuilder ColumnNamed(string columnName)
Parameters
Type | Name | Description |
---|---|---|
System. |
columnName | The name of the column to sort, see Name. |
Returns
Type | Description |
---|---|
Table |
A Table |
ColumnNamed(String, eSortOrder)
Sorts by the column that corresponds to the columnName
using the supplied sort direction.
Declaration
public TableSortLayerBuilder ColumnNamed(string columnName, eSortOrder sortOrder)
Parameters
Type | Name | Description |
---|---|---|
System. |
columnName | Name of the column to sort, see Name |
e |
sortOrder | Ascending or Descending sort |
Returns
Type | Description |
---|---|
Table |
A Table |