TX Text Control .NET for Windows Forms

Filters Property

Property|Introduced in 26.0
Namespace
TXTextControl.DocumentServer.Windows.Forms
Package
TXTextControl.TextControl.WinForms.SDK as TXDocumentServer.Windows.Forms.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 change is then applied to the active document or user interface.

filterAndSortDialog.Filters = new TXTextControl.DocumentServer.DataShaping.FilterInstruction[] { new TXTextControl.DocumentServer.DataShaping.FilterInstruction("CustomerName", TXTextControl.DocumentServer.DataShaping.RelationalOperator.Equals) };
filterAndSortDialog.Update();