TX Text Control .NET for Windows Forms

ImportFilters Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets all available filters for importing images. This property can be used to set the FileDialog.Filter property.

Syntax

public string ImportFilters { get; }

Examples

The following example checks the registered image-import filter description before accepting PNG uploads.

string importFilters = textControl.Images.ImportFilters;
bool canImportPng = importFilters.Contains("PNG", StringComparison.OrdinalIgnoreCase);
Console.WriteLine($"PNG import available: {canImportPng}");

Limitations

Read only.