# FilterAndSortDialog Class

> The FilterAndSortDialog class allows the user to specify filters and sorting instructions for merge blocks. The FilterAndSortDialog is a modal dialog box which must be shown with the FilterAndSortDialog.ShowDialog method.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.DocumentServer.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.WPF.dll` from the setup
- **Inherits:** `System.Windows.Window`
- **Implements:** `System.Windows.Markup.IComponentConnector`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.WPF > FilterAndSortDialog Class
- **791 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-wpf/filterandsortdialog/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-wpf/filterandsortdialog/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-wpf/filterandsortdialog/llms-full.txt

---

### Description

The FilterAndSortDialog class allows the user to specify filters and sorting instructions for merge blocks. The FilterAndSortDialog is a modal dialog box which must be shown with the `FilterAndSortDialog.ShowDialog` method.

### Syntax

```csharp
public class FilterAndSortDialog : Window, IComponentConnector
```

```vbnet
Public Class FilterAndSortDialog
    Inherits Window
    Implements IComponentConnector
```

### Examples

The following example creates a Filter And Sort Dialog instance and configures its allows transparency setting for a document workflow.

```csharp
TXTextControl.DocumentServer.WPF.FilterAndSortDialog filterAndSortDialog = new(new string[] { "CustomerName" });
filterAndSortDialog.AllowsTransparency = true;
```

```vbnet
Dim filterAndSortDialog As New TXTextControl.DocumentServer.WPF.FilterAndSortDialog(New String() { "CustomerName" })
filterAndSortDialog.AllowsTransparency = True
```

---

## In This Section

- [FilterAndSortDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-wpf/filterandsortdialog/constructor/llms-full.txt): Initializes a new instance of the FilterAndSortDialog class.
- [FilterAndSortDialog.Filters Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-wpf/filterandsortdialog/filters-property/llms-full.txt): Gets the filter instructions which were created using the dialog or sets the filter instructions which are shown when the dialog is opened.
- [FilterAndSortDialog.SortingInstructions Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-wpf/filterandsortdialog/sortinginstructions-property/llms-full.txt): Gets the sorting instructions which were created using the dialog or sets the sorting instructions which are shown when the dialog is opened.
- [FilterAndSortDialog.StoreBlockMetaData Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-wpf/filterandsortdialog/storeblockmetadata-method/llms-full.txt): Stores filters and sorting instructions created with the dialog in a SubTextPart object if the SubTextPart is a merge block. Throws an exception if the SubTextPart object is not a merge block.

---

## Nearby

- **Previous:** [EditMergeBlocksDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-wpf/editmergeblocksdialog/constructor/llms-full.txt)
- **Next:** [FilterAndSortDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-wpf/filterandsortdialog/constructor/llms-full.txt)
