TX Text Control ActiveX

AppendFromMemory Method

Method

Appends text in a certain format from a buffer and inserts it at the end of the current document.

Introduced: 22.0.

Syntax

TXTextControl.AppendFromMemory DataArray[, Format[, AppendSettings]]

Parameters

ParameterDescription
DataArraySpecifies the byte array to load from.
FormatOptional. 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.
AppendSettingsOptional. When omitted, the text is inserted at the last position of the last paragraph. Otherwise, it must be one of the following AppendSettingsConstants constants:

AppendSettings

ConstantMeaning
txStartWithNewParagraphAppends the text starting with a new paragraph.
txStartWithNewSectionAppends 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

NameData type
DataArrayOne-dimensional Byte Array
FormatInteger
AppendSettingsInteger
Return valueBoolean

Examples

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