SortingInstructions Property
- Namespace
TXTextControl.DocumentServer. WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets the sorting instructions which were created using the dialog or sets the sorting instructions which are shown when the dialog is opened.
Syntax
public SortingInstruction[] SortingInstructions { get; set; }Public Property SortingInstructions As SortingInstruction()Examples
The following example uses FilterAndSortDialog.SortingInstructions to configure sorting instructions as part of the filter and sort dialog workflow. The configured value is checked before the workflow continues.
filterAndSortDialog.SortingInstructions = new TXTextControl.DocumentServer.DataShaping.SortingInstruction[] { new TXTextControl.DocumentServer.DataShaping.SortingInstruction("Quarterly report") };
if (filterAndSortDialog.SortingInstructions != null)
{
Console.WriteLine("Filter And Sort Dialog: Sorting Instructions is available.");
}filterAndSortDialog.SortingInstructions = New TXTextControl.DocumentServer.DataShaping.SortingInstruction() { New TXTextControl.DocumentServer.DataShaping.SortingInstruction("Quarterly report") }
If filterAndSortDialog.SortingInstructions IsNot Nothing Then
Console.WriteLine("Filter And Sort Dialog: Sorting Instructions is available.")
End If