Appends text in a certain format from a buffer and inserts it at the end of the current document.
Introduced: 22.0.
TXTextControl.AppendFromMemory DataArray[, Format[, AppendSettings]]
Parameter | Description | ||||||||||
DataArray |
Specifies the byte array to load from. |
||||||||||
Format |
Optional. Specifies a format identifier. When not specified Text Control assumes Text Control's internal format (3). See the Format parameter of the Load method for possible format identifiers. |
||||||||||
AppendSettings |
Optional. When omitted, the text is inserted at the last position of the last paragraph. Otherwise, it must be one of the following AppendSettingsConstants constants:
|
The method returns True if the data could be appended, otherwise it returns False.
DataArray: | One-dimensional Byte Array |
Format: | Integer |
AppendSettings: | Integer |
Return value: | Boolean |
This Basic example copies the current contents of a TXTextcontrol to a buffer and appends this text at end of the document starting with a new section:
Dim data() As Byte data = TXTextControl1.SaveToMemory(3) TXTextControl1.AppendFromMemory data, 3, AppendSettingsConstants.txStartWithNewSection
<< TXTextControl.Append Method | >> TXTextControl.AutoBaseLine Property