TX Text Control .NET for Windows Forms Documentation

LoadSettings Class

The LoadSettings class provides properties for advanced settings and information during load operations. See the TextControl.Load method for more information.

Syntax

[C#] public sealed class LoadSettings
[Visual Basic] Public NotInheritable Class LoadSettings

Properties

PropertyDescription
ApplicationFieldFormatSpecifies the format of text fields which are imported.
ApplicationFieldTypeNamesSpecifies an array of strings containing the type names of fields which are to be imported.
BytesReadGets the number of bytes read during the load operation.
CssFileNameGets the path and filename of the CSS file belonging to a HTML or XML document.
DocumentBasePathSets a file path that is used to search for resources like images or hypertext links.
DocumentTitleGets the document's title if any.
ImageSearchPathSets a file path that is used to search for resources like images or hypertext links.
LoadedFileGets the name and path of the file that has been loaded.
LoadedStreamTypeGets the StreamType of the file that has been loaded.
LoadHypertextLinksSpecifies whether or not hypertext links are loaded.
LoadImagesSpecifies whether or not images are loaded.
PageMarginsGets the margins of the loaded document's pages.
PageSizeGets the width and height of the loaded document's pages.
PDFImportSettingsSpecifies how the document structure is generated when a PDF document is imported.

Example

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

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now