TX Text Control .NET for Windows Forms Documentation

ServerTextControl.Save Method

Saves text in a certain format in a file, in a byte array or as a string. The complete contents of a document are saved.

Syntax

[C#] public void Save(string path, StreamType streamType); public void Save(FileStream fileStream, StreamType streamType); public void Save(out byte[] binaryData, BinaryStreamType binaryStreamType); public void Save(out string stringData, StringStreamType stringStreamType); public void Save(string path, StreamType streamType, SaveSettings saveSettings); public void Save(FileStream fileStream, StreamType streamType, SaveSettings saveSettings); public void Save(out byte[] binaryData, BinaryStreamType binaryStreamType, SaveSettings saveSettings); public void Save(out string stringData, StringStreamType stringStreamType, SaveSettings saveSettings);
[Visual Basic] Public Sub Save(ByVal path As String, ByVal streamType As StreamType) Public Sub Save(ByVal fileStream As FileStream, ByVal streamType As StreamType) Public Sub Save(ByRef binaryData As Byte(), ByVal binaryStreamType As BinaryStreamType) Public Sub Save(ByRef stringData As String, ByVal stringStreamType As StringStreamType) Public Sub Save(ByVal path As String, ByVal streamType As StreamType, ByVal saveSettings As SaveSettings) Public Sub Save(ByVal fileStream As FileStream, ByVal streamType As StreamType, ByVal saveSettings As SaveSettings) Public Sub Save(ByRef binaryData As Byte(), ByVal binaryStreamType As BinaryStreamType, ByVal saveSettings As SaveSettings) Public Sub Save(ByRef stringData As String, ByVal stringStreamType As StringStreamType, ByVal saveSettings As SaveSettings)
MemberDescription
streamType

Specifies one of the StreamType values.

path

Specifies a file into which the data is saved. If the file does not exist it is created. If the file exists its contents are overwritten.

fileStream

Specifies a file into which the data is saved. The data is saved at the stream's current position.

binaryData

Specifies a byte array into which the data is saved. No memory needs to be allocated through the caller.

stringData

Specifies a string into which the data is saved. No memory needs to be allocated through the caller.

binaryStreamType

Specifies one of the BinaryStreamType values.

stringStreamType

Specifies one of the StringStreamType values.

saveSettings

Specifies a SaveSettings object with additional information and settings for the save operation.

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now