DocumentSettings 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
Description
The DocumentSettings class provides properties which inform about general document settings, such as author and title, contained in the document the user is currently working on. A DocumentSettings object is provided through the TextControl.DocumentSettings or WPF.TextControl.DocumentSettings property. The object's values can be changed during a user is working on the document. When such a document is saved with one of the Save methods all settings are automatically stored but can be overwritten through the corresponding property of the SaveSettings class.
Syntax
public class DocumentSettingsPublic Class DocumentSettingsExamples
The following example configures document settings for the current document.
DocumentSettings documentSettings = textControl.DocumentSettings;
documentSettings.DocumentTitle = "Quarterly results";
documentSettings.Author = "Finance team";Dim documentSettings As DocumentSettings = textControl.DocumentSettings
documentSettings.DocumentTitle = "Quarterly results"
documentSettings.Author = "Finance team"Members
Constructors
| Constructor | Description |
|---|---|
| DocumentSettings | Not described in the reference. public DocumentSettings(); |
Properties
| Property | Description |
|---|---|
| Author | Gets or sets the author of the current document. It is an empty string, if there is no author contained in the current document. |
| CreationDate | Gets or sets the document's creation date. It is January 1, 0001 in the Gregorian calendar, if there is no creation date contained in the current document. |
| CreatorApplication | Gets or sets the application, which has created the current document. It is an empty string, if a creator application is not contained in the current document. |
| DocumentBasePath | Gets or sets a file path that is used to search for resources like images or hypertext links. This path is added to all relative file paths used in the document. |
| DocumentKeywords | Gets or sets the current document's keywords. The property value is null, if there are no keywords contained in the document. |
| DocumentSubject | Gets or sets the subject string of the current document. It is an empty string, if there is no subject string contained in the document. |
| DocumentTitle | Gets or sets the current document's title. It is an empty string, if there is no title contained in the current document. |
| EmbeddedFiles | Gets or sets an array of EmbeddedFile objects providing the name, data and additional optional properties of files, which are embedded in the current document. The property value is null, if there are no embedded files contained in the document. |
| UserDefinedDocumentProperties | Gets or sets a dictionary with all user-defined document properties contained in the current document. The property's value is an object of the type UserDefinedPropertyDictionary or null, if the current document does not contain any user-defined property. |