
The LoadSettings class provides properties for advanced settings and information during load operations. See the TextControl.Load method for more information.
[C#]
public sealed class LoadSettings
[Visual Basic]
Public NotInheritable Class LoadSettings
| Property | Description | |
| ApplicationFieldFormat | Specifies the format of text fields which are imported. | |
| ApplicationFieldTypeNames | Specifies an array of strings containing the type names of fields which are to be imported. | |
| BytesRead | Gets the number of bytes read during the load operation. | |
| CssFileName | Gets the path and filename of the CSS file belonging to a HTML or XML document. | |
| DocumentBasePath | Sets a file path that is used to search for resources like images or hypertext links. | |
| DocumentTitle | Gets the document's title if any. | |
| ImageSearchPath | Sets a file path that is used to search for resources like images or hypertext links. | |
| LoadedFile | Gets the name and path of the file that has been loaded. | |
| LoadedStreamType | Gets the StreamType of the file that has been loaded. | |
| LoadHypertextLinks | Specifies whether or not hypertext links are loaded. | |
| LoadImages | Specifies whether or not images are loaded. | |
| PageMargins | Gets the margins of the loaded document's pages. | |
| PageSize | Gets the width and height of the loaded document's pages. | |
| PDFImportSettings | Specifies how the document structure is generated when a PDF document is imported. |
The following example shows how to use the LoadSettings to get the filename and the read bytes of a loaded document.
[C#]
TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings();
if (textControl1.Load(TXTextControl.StreamType.All, ls) == DialogResult.OK)
{
MessageBox.Show(ls.LoadedFile + " has been loaded. " + ls.BytesRead.ToString() + " bytes read.");
}
[Visual Basic]
Dim ls As TXTextControl.LoadSettings = New TXTextControl.LoadSettings()
If TextControl1.Load(TXTextControl.StreamType.All, ls) = DialogResult.OK Then
MessageBox.Show(ls.LoadedFile + " has been loaded. " + ls.BytesRead.ToString() + " bytes read.")
End If