LoadSaveSettingsBase Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.dll
- Derived
- Load
Settings , SaveSettings
Description
The LoadSaveSettingsBase class is the base class of the LoadSettings and SaveSettings classes.
Syntax
public abstract class LoadSaveSettingsBasePublic MustInherit Class LoadSaveSettingsBaseExamples
The following example includes the default stream type value from a Load Save Settings Base object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Default Stream Type: {loadSaveSettingsBase.DefaultStreamType}");
Console.WriteLine("Load Save Settings Base is ready for use.");Console.WriteLine($"Default Stream Type: {loadSaveSettingsBase.DefaultStreamType}")
Console.WriteLine("Load Save Settings Base is ready for use.")Members
Properties
| Property | Description |
|---|---|
| DefaultStreamType | Determines the default StreamType used in the file Open... and file Save As... dialogboxes. |
| DocumentBasePath | Sets a base path saved in the document that is used to resolve relative file paths. |
| EmbeddedFiles | Specifies an array of EmbeddedFile objects which will be embedded in the saved document. Each file must be specified through a name and its data. |
| MasterPassword | Specifies a password for the document's access permissions. If the password is an empty string, accessing the document is not restricted. If a password is specified, the access permissions are given through the SaveSettings.DocumentAccessPermissions property. |
| ReportingMergeBlockFormat | Specifies how reporting merge blocks are handled when a document is saved. Reporting merge blocks can be saved in a document either through special document targets represented through DocumentTarget objects or through special subtextparts represented through SubTextPart objects. When a merge block is marked with document targets, the name of the starting marker begins with blockstart_ and the name of the ending marker begins with blockend_. When a merge block is marked through a subtextpart, its name begins with txmb_. |
| UserPassword | Specifies the password for the user when the document is reopened. If the password is an empty string the document can be reopened by every user. |