TX Text Control .NET for WPF

BinaryStreamType Enumeration

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

Description

Determines a certain text format that must be stored in a one-dimensional byte array. The enumeration contains the following values:

Syntax

[Flags]
public enum BinaryStreamType

Members

MemberValueDescription
AdobePDF512Specifies Adobe Portable Document Format (PDF). How a PDF document is loaded depends on the LoadSettings.PDFImportSettings property. Only a complete document can be saved with this format.
AdobePDFA2048Specifies Adobe Portable Document Format Archive (PDF/A). This format can only be used in saving operations and only a complete document can be saved with this format.
InternalFormat2Specifies the Text Control format. Text is stored in ANSI format.
InternalUnicodeFormat32Specifies the Text Control format. Text is stored in Unicode format.
MSWord64Specifies Microsoft Word format.
SpreadsheetML4096Specifies Microsoft Excel format (Office Open XML version).
WordprocessingML1024Specifies Microsoft Word format (Office Open XML version).

Examples

The following example selects the Wordprocessing ML value from the Binary Stream Type enumeration and uses it as a documented workflow choice.

BinaryStreamType value = BinaryStreamType.WordprocessingML;
Console.WriteLine($"Using Binary Stream Type: {value}");

See Also

TextControl.Load Method, WPF.TextControl.Load Method, ServerTextControl.Load Method, TextControl.Save Method, WPF.TextControl.Save Method, ServerTextControl.Save Method.

Further Reading

  • Convert DOCX to PDF, PDF/A and PDF/UA in C# Using TX Text Control –
  • MailMerge: Merge Hyperlinks into Merge Fields –
  • Reporting: Conditional Formatted Text Blocks –
  • Web.TextControl: Adding Buttons to the Ribbon Bar –