# LoadSaveSettingsBase.DefaultStreamType Property

> Determines the default StreamType used in the file Open... and file Save As... dialogboxes.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 31.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > LoadSaveSettingsBase.DefaultStreamType Property
- **596 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsavesettingsbase/defaultstreamtype-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsavesettingsbase/defaultstreamtype-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsavesettingsbase/defaultstreamtype-property/llms-full.txt

---

### Description

Determines the default [StreamType](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/streamtype/enumeration/llms-full.txt) used in the file `Open...` and file `Save As...` dialogboxes.

### Syntax

```csharp
public StreamType DefaultStreamType { get; set; }
```

```vbnet
Public Property DefaultStreamType As StreamType
```

### Examples

The following example treats documents without a detectable signature as WordprocessingML files. The configured base settings are then used by the appropriate load or save operation.

```csharp
loadSaveSettingsBase.DefaultStreamType = StreamType.WordprocessingML;
if (loadSaveSettingsBase is LoadSettings loadSettings)
{
    textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);
}
else if (loadSaveSettingsBase is SaveSettings saveSettings)
{
    textControl.Save("configured-document.docx", StreamType.WordprocessingML, saveSettings);
}
```

```vbnet
loadSaveSettingsBase.DefaultStreamType = StreamType.WordprocessingML
If TypeOf loadSaveSettingsBase Is LoadSettings Then
    textControl.Load("template.docx", StreamType.WordprocessingML, DirectCast(loadSaveSettingsBase, LoadSettings))
ElseIf TypeOf loadSaveSettingsBase Is SaveSettings Then
    textControl.Save("configured-document.docx", StreamType.WordprocessingML, DirectCast(loadSaveSettingsBase, SaveSettings))
End If
```

---

## Nearby

- **Previous:** [LoadSaveSettingsBase Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsavesettingsbase/llms-full.txt)
- **Next:** [LoadSaveSettingsBase.DocumentBasePath Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsavesettingsbase/documentbasepath-property/llms-full.txt)
