Loading, Saving and Database Support
Documents reach TXTextControl from files, from memory and from databases. The members below load, append and save documents in files or memory, open the built-in load and save dialog boxes and exchange text with a database when the control is used as a bound control.
The Change event tells you that the contents have changed.
Properties
| Member | Description |
|---|---|
TXTextControl.DataText | The DataText property is used internally by Visual Basic when a TXTextControl is used as a bound control. |
TXTextControl.DataTextFormat | When using a TXTextControl as a bound control, this property specifies if the data which is exchanged with a database is text or binary data. |
TXTextControl.Device | This property returns or sets the device for which the current TXTextControl document is formatted. |
TXTextControl.LoadSaveAttribute | This property enables an application to specify several attributes that can be used in combination with the Load and Save methods. |
TXTextControl.RTFSelText | This property works much like the standard SelText property. |
TXTextControl.Text | Returns or sets the complete text of a TXTextControl. |
Methods
| Member | Description |
|---|---|
TXTextControl.Append | Appends text in a certain format from a file and inserts it at the end of the current document. |
TXTextControl.AppendFromMemory | Appends text in a certain format from a buffer and inserts it at the end of the current document. |
TXTextControl.Load | Loads text in a certain format from a file and inserts it into the TXTextControl. |
TXTextControl.LoadDialog | Opens the system 'Open' dialogbox and loads a document as specified. |
TXTextControl.LoadFromMemory | Loads text in a certain format from a buffer and inserts it into the TXTextControl. |
TXTextControl.ResetContents | Deletes the complete contents of a TXTextControl including tables, objects, marked text fields and headers and footers. |
TXTextControl.Save | Saves data in a file with a specified format. |
TXTextControl.SaveDialog | Opens the system 'Save As' dialogbox and saves a document as specified. |
TXTextControl.SaveToMemory | Returns a one-dimensional byte array containing text data in a specified format. |
TXTextControl.SaveToMemoryBuffer | Returns a buffer containing text data in a specified format. |
Events
| Member | Description |
|---|---|
TXTextControl.Change | Indicates that the contents of a TXTextControl have changed. |