Filters 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 filter instructions which were created using the dialog or sets the filter instructions which are shown when the dialog is opened.
Syntax
public FilterInstruction[] Filters { get; set; }Public Property Filters As FilterInstruction()Examples
The following example uses FilterAndSortDialog.Filters to configure filters as part of the filter and sort dialog workflow. The configured value is checked before the workflow continues.
filterAndSortDialog.Filters = new TXTextControl.DocumentServer.DataShaping.FilterInstruction[] { new TXTextControl.DocumentServer.DataShaping.FilterInstruction("CustomerName", TXTextControl.DocumentServer.DataShaping.RelationalOperator.Equals) };
if (filterAndSortDialog.Filters != null)
{
Console.WriteLine("Filter And Sort Dialog: Filters is available.");
}filterAndSortDialog.Filters = New TXTextControl.DocumentServer.DataShaping.FilterInstruction() { New TXTextControl.DocumentServer.DataShaping.FilterInstruction("CustomerName", TXTextControl.DocumentServer.DataShaping.RelationalOperator.Equals) }
If filterAndSortDialog.Filters IsNot Nothing Then
Console.WriteLine("Filter And Sort Dialog: Filters is available.")
End If