TX Text Control .NET Documentation

ServerTextControl.Append Method

Description:Loads text in a certain format from a file, a byte array or a string and appends it to the existing document.

Syntax:
[C#] public void Append(string path, StreamType streamType, AppendSettings appendSettings); public void Append(FileStream fileStream, StreamType streamType, AppendSettings appendSettings); public void Append(byte[] binaryData, BinaryStreamType binaryStreamType, AppendSettings appendSettings); public void Append(string stringData, StringStreamType stringStreamType, AppendSettings appendSettings); public void Append(string path, StreamType streamType, LoadSettings loadSettings, AppendSettings appendSettings); public void Append(FileStream fileStream, StreamType streamType, LoadSettings loadSettings, AppendSettings appendSettings); public void Append(byte[] binaryData, BinaryStreamType binaryStreamType, LoadSettings loadSettings); public void Append(string stringData, StringStreamType stringStreamType, LoadSettings loadSettings, AppendSettings appendSettings);
[Visual Basic] Public Sub Append(ByVal path As String, ByVal streamType As StreamType, ByVal appendSettings As AppendSettings) Public Sub Append(ByVal fileStream As FileStream, ByVal streamType As StreamType, ByVal appendSettings As AppendSettings) Public Sub Append(ByVal binaryData As Byte(), ByVal binaryStreamType As BinaryStreamType, ByVal appendSettings As AppendSettings) Public Sub Append(ByVal stringData As String, ByVal stringStreamType As StringStreamType, ByVal appendSettings As AppendSettings) Public Sub Append(ByVal path As String, ByVal streamType As StreamType, ByVal loadSettings As LoadSettings, ByVal appendSettings As AppendSettings) Public Sub Append(ByVal fileStream As FileStream, ByVal streamType As StreamType, ByVal loadSettings As LoadSettings, ByVal appendSettings As AppendSettings) Public Sub Append(ByVal binaryData As Byte(), ByVal binaryStreamType As BinaryStreamType, ByVal loadSettings As LoadSettings) Public Sub Append(ByVal stringData As String, ByVal stringStreamType As StringStreamType, ByVal loadSettings As LoadSettings, ByVal appendSettings As AppendSettings)
MemberDescription
appendSettingsSpecifies settings how the document is appended. It can be one of the following values:

ValueMeaning
NoneThe loaded text is inserted at the end of last paragraph of the existing document.

StartWithNewParagraphA new paragraph is created at the end of the document and the text is inserted in this paragraph.

StartWithNewSectionA new section is created at the end of the document and the text is inserted in this section.


streamTypeSpecifies one of the StreamType values.

pathSpecifies a file from which the data is loaded.

fileStreamSpecifies a file from which the data is loaded. The data is loaded from the stream's current position.

binaryDataSpecifies a byte array from which the data is loaded.

stringDataSpecifies a string from which the data is loaded.

binaryStreamTypeSpecifies one of the BinaryStreamType values.

stringStreamTypeSpecifies one of the StringStreamType values.

loadSettingsSpecifies a LoadSettings object with additional information and settings for the load operation.

Introduced:14.0

See also:Loading, Saving and Database Support, Graphical Overview, PDF Import and Export.