TX Text Control .NET for Windows Forms

FilterError Enumeration

Enumeration|Introduced in 24.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.

Description

Enumerates errors which can occur when a text filter is used to convert a TX Text Control document to or from another format. It contains the following values:

Syntax

public enum FilterException.FilterError

Members

MemberValueDescription
WrongFileType1The file type is not supported through the filter.
BadToken2There is a logical error in the file.
OutOfMemory3Unable to allocate enough memory.
CannotRead4File read error.
CannotWrite5File write error.
CannotOpen6Unable to open the file.
FileTooBig7The input file is too big.
Unsupported8Unsupported format version.
Internal9Unspecified internal error.
Obsolete10The filter is obsolete.
NotWellFormed11The file contains not well-formed syntax.
Encrypted12The document cannot be imported because the used encryption scheme is not supported.
NonEmbeddableFont13The document cannot be saved, because it contains a non-embeddable font.
InvalidCertificate14The specified certificate is invalid or has no private key.
InvalidTimeServer15The specified time server does not exist or retrieves invalid data.
InvalidPassword16The specified user-password is invalid.
EncryptedPassword17Not described in the reference.
InvalidReference18Not described in the reference.
FormulaCalculation19Not described in the reference.
FormulaFunctionParameter20Not described in the reference.
NeedsTableRowCount21Not described in the reference.

Examples

The following example selects the Wrong File Type value from the Filter Error enumeration and uses it as a documented workflow choice.

FilterException.FilterError value = FilterException.FilterError.WrongFileType;
Console.WriteLine($"Using Filter Error: {value}");