SortingInstruction Constructor
- Namespace
TXTextControl.DocumentServer. DataShaping
- Package
TXTextControl.asTextControl. Core. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
Description
Initializes a new instance of the SortingInstruction class.
Syntax
SortingInstruction(string, SortOrder)
Sets the column name to order the data by and sets the sort order (ascending / descending).
public SortingInstruction(string orderBy, SortOrder sortOrder);Public Sub New(orderBy As String, sortOrder As SortOrder)| Parameter | Description | ||||||
|---|---|---|---|---|---|---|---|
| orderBy | The name of the column to order the block data by. | ||||||
| sortOrder | The sort order.
|
SortingInstruction(string)
Sets the column name to order the data by and sets the sort order to SortOrder.Ascending.
public SortingInstruction(string orderBy);Public Sub New(orderBy As String)| Parameter | Description |
|---|---|
| orderBy | The name of the column to order the block data by. |
Examples
The following example creates a Sorting Instruction instance and configures its order by setting for a document workflow.
TXTextControl.DocumentServer.DataShaping.SortingInstruction sortingInstruction = new("Quarterly report");
sortingInstruction.OrderBy = "Quarterly report";Dim sortingInstruction As New TXTextControl.DocumentServer.DataShaping.SortingInstruction("Quarterly report")
sortingInstruction.OrderBy = "Quarterly report"