Class TableSortLayer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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.Int32 | column | The column to sort |
Returns
Type | Description |
---|---|
TableSortLayerBuilder | A TableSortLayerBuilder for adding more sort criterias |
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.Int32 | column | The column to sort |
eSortOrder | sortOrder | Ascending or Descending sort |
Returns
Type | Description |
---|---|
TableSortLayerBuilder | A TableSortLayerBuilder for adding more sort criterias |
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.String | columnName | The name of the column to sort, see Name. |
Returns
Type | Description |
---|---|
TableSortLayerBuilder | A TableSortLayerBuilder for adding more sort criterias |
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.String | columnName | Name of the column to sort, see Name |
eSortOrder | sortOrder | Ascending or Descending sort |
Returns
Type | Description |
---|---|
TableSortLayerBuilder | A TableSortLayerBuilder for adding more sort criterias |