# StreamType Enumeration

> Determines a certain text format. The enumeration contains the following values:

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Namespace:** `TXTextControl.Web`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > StreamType Enumeration
- **962 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/streamtype/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/streamtype/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/streamtype/enumeration/llms-full.txt

---

### Description

Determines a certain text format. The enumeration contains the following values:

### Syntax

```csharp
[Flags]
public enum StreamType
```

```vbnet
<Flags>
Public Enum StreamType
```

### Members

| Member | Value | Description |
|---|---|---|
| AdobePDF | 512 | Specifies Adobe Portable Document Format (PDF). If a document is loaded, only the text is imported. |
| AdobePDFA | 2048 | Specifies Adobe Portable Document Format Archive (PDF/A). This format can only be used in saving operations. |
| CascadingStylesheet | 256 | Specifies CSS format (Cascading Style Sheet). This format can only be used in saving operations. |
| HTMLFormat | 4 | Specifies HTML format (Hypertext Markup Language). |
| InternalFormat | 2 | Specifies the Text Control format. Text is stored in ANSI format. |
| InternalUnicodeFormat | 32 | Specifies the Text Control format. Text is stored in Unicode format. |
| MSWord | 64 | Specifies Microsoft Word format (.DOC version). |
| PlainAnsiText | 1 | Specifies text in Windows ANSI format (an end of a paragraph is marked with the control characters 13 and 10). |
| PlainText | 16 | Specifies text in Windows Unicode format (an end of a paragraph is marked with the control characters 13 and 10). |
| RichTextFormat | 8 | Specifies RTF format (Rich Text Format). |
| WordprocessingML | 1024 | Specifies Microsoft Word format (Office Open XML version). |
| XMLFormat | 128 | Specifies XML format (Extensible Markup Language). |
| SpreadsheetML | 4096 | Not described in the reference. |
| All | 8191 | Not described in the reference. |

### Examples

The following example selects `PlainAnsiText` and retains that choice for the related document-processing operation.

```csharp
TXTextControl.Web.StreamType value = TXTextControl.Web.StreamType.PlainAnsiText;
Console.WriteLine($"Using Stream Type: {value}");
```

```vbnet
Dim value As TXTextControl.Web.StreamType = TXTextControl.Web.StreamType.PlainAnsiText
Console.WriteLine($"Using Stream Type: {value}")
```

### See Also

[Web.TextControl.LoadText](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/loadtext-method/llms-full.txt) Method, [Web.TextControl.SaveText](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/savetext-method/llms-full.txt) Method.

---

## Nearby

- **Previous:** [Selection.Start Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/selection/start-property/llms-full.txt)
- **Next:** [StringStreamType Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/stringstreamtype/enumeration/llms-full.txt)
