TXTextControl.AppendFromMemory Method

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

Specifies the byte array to load from.


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.


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:

Constant Meaning
txStartWithNewParagraph Appends the text starting with a new paragraph.
txStartWithNewSection Appends the text starting with a new section on a new page.

Return Value

The method returns True if the data could be appended, otherwise it returns False.

Data Types

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

See Also