TX Text Control .NET Documentation

TXTextControl.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.
AuthorGets the document's author.
BytesReadGets the number of bytes read during the load operation.
CreationDateGets the document's creation date.
CreatorApplicationGets the application, which has created the document.
CssFileNameGets the path and filename of the CSS file belonging to a HTML or XML document.
DocumentAccessPermissionsSpecifies how a document can be accessed after it has been loaded.
DocumentBasePathSets a file path that is used to search for resources like images or hypertext links.
DocumentKeywordsGets the document's keywords.
DocumentSubjectGets the document's subject string.
DocumentTitleGets the document's title.
ImageSearchPathSets a file path that is used to search for resources like images or hypertext links.
LastModificationDateGets the date the document is last modified.
LoadDocumentBackColorSpecifies whether or not the document background color is loaded.
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.
LoadSubTextPartsDOCX Format only: Specifies whether or not bookmarks which extend over several characters are converted to SubTextParts.
MasterPasswordSpecifies the password when the document is restricted with access permissions.
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.
ReportingMergeBlockFormatSpecifies how reporting merge blocks are handled when a document is loaded.
UserDefinedDocumentPropertiesGets a dictionary with all user-defined document properties contained in the loaded document.
UserPasswordSpecifies the password for the user to open a password protected document.

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

 
 
Call us: +1 704-544-7445 (United States)
 
 

Products

Support

Downloads

Corporate

Buy Now

About Text Control

Founded in 1991, Text Control is an award-winning Visual Studio Industry Partner and leading vendor of word processing and reporting components for Microsoft development technologies. The products help thousands of developers add comprehensive word processing functionality to their applications. Text Control is 100% self-owned and independent of all investor decisions. Customers benefit from these years of experience, large user-base, and at the same time, appreciate developing with a mature, reliable product.

SD Times 100SD Times 100SD Times 100SD Times 100SD Times 100SD Times 100Visual Studio 2015 Launch PartnerVisual Studio 2013 Launch PartnerVisual Studio 2012 Launch PartnerVisual Studio Partner