TX Text Control .NET for WPF

Filters Property

Property|Introduced in 26.0
Namespace
TXTextControl.DocumentServer.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXDocumentServer.WPF.dll from the private NuGet feed or Text Control Offline Packages

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; }

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.");
}