FilterError Enumeration
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
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.FilterErrorPublic Enum FilterException.FilterErrorMembers
| Member | Value | Description |
|---|---|---|
| WrongFileType | 1 | The file type is not supported through the filter. |
| BadToken | 2 | There is a logical error in the file. |
| OutOfMemory | 3 | Unable to allocate enough memory. |
| CannotRead | 4 | File read error. |
| CannotWrite | 5 | File write error. |
| CannotOpen | 6 | Unable to open the file. |
| FileTooBig | 7 | The input file is too big. |
| Unsupported | 8 | Unsupported format version. |
| Internal | 9 | Unspecified internal error. |
| Obsolete | 10 | The filter is obsolete. |
| NotWellFormed | 11 | The file contains not well-formed syntax. |
| Encrypted | 12 | The document cannot be imported because the used encryption scheme is not supported. |
| NonEmbeddableFont | 13 | The document cannot be saved, because it contains a non-embeddable font. |
| InvalidCertificate | 14 | The specified certificate is invalid or has no private key. |
| InvalidTimeServer | 15 | The specified time server does not exist or retrieves invalid data. |
| InvalidPassword | 16 | The specified user-password is invalid. |
| EncryptedPassword | 17 | Not described in the reference. |
| InvalidReference | 18 | Not described in the reference. |
| FormulaCalculation | 19 | Not described in the reference. |
| FormulaFunctionParameter | 20 | Not described in the reference. |
| NeedsTableRowCount | 21 | Not 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}");Dim value As FilterException.FilterError = FilterException.FilterError.WrongFileType
Console.WriteLine($"Using Filter Error: {value}")