TXTextControl.Web.Selection.Save Method

Saves the selected text of a document with the specified format.

Save(String, StreamType)

Saves the selected text of a document in the specified file with the specified format.

[C#]
public void Save(string path, Web.StreamType streamType);
[Visual Basic]
Public Sub Load(ByVal path as String, ByVal streamType as Web.StreamType)
Member Description
path

Saves the selected text of a document in the specified file with the specified format.

streamType

Specifies one of the StreamType values.

streamType

Specifies one of the StreamType values.

streamType

Specifies one of the BinaryStreamType values.

streamType

Specifies one of the StringStreamType values.

Save(FileStream, StreamType)

Saves the selected text of a document in the specified file stream with the specified format.

[C#]
public void Save(System.IO.FileStream fileStream, Web.StreamType streamType);
[Visual Basic]
Public Sub Save(ByVal fileStream As System.IO.FileStream, ByVal streamType As Web.StreamType)
Member Description
fileStream

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

streamType

Specifies one of the StreamType values.

streamType

Specifies one of the StreamType values.

streamType

Specifies one of the BinaryStreamType values.

streamType

Specifies one of the StringStreamType values.

Save(Byte[], BinaryStreamType)

Saves the selected text of a document in the specified byte array with the specified format.

[C#]
public void Save(out byte[] data, Web.BinaryStreamType streamType);
[Visual Basic]
Public Sub Save(ByRef data As Byte(), ByVal streamType As Web.BinaryStreamType)
Member Description
data

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

streamType

Specifies one of the StreamType values.

streamType

Specifies one of the StreamType values.

streamType

Specifies one of the BinaryStreamType values.

streamType

Specifies one of the StringStreamType values.

Save(String, StringStreamType)

Saves the selected text of a document as a string with the specified format.

[C#]
public void Save(out string stringData, Web.StringStreamType streamType);
[Visual Basic]
Public Sub Save(ByRef stringData As String, ByVal streamType As Web.StringStreamType)
Member Description
stringData

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

streamType

Specifies one of the StreamType values.

streamType

Specifies one of the StreamType values.

streamType

Specifies one of the BinaryStreamType values.

streamType

Specifies one of the StringStreamType values.

See Also