TXTextControl.Web.Selection.Load Method

Exchanges the currently selected text with text in a certain format.

Load(String, StreamType)

Exchanges the currently selected text with text in the specified format. The new text is read from the specified file.

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

Specifies a file from which the data is loaded.

streamType

Specifies one of the StreamType values.

Load(FileStream, StreamType)

Exchanges the currently selected text with text in the specified format. The new text is read from the specified file stream.

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

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

streamType

Specifies one of the StreamType values.

Load(Byte[], BinaryStreamType)

Exchanges the currently selected text with text in the specified format. The new text is read from the specified byte array.

[C#]
public void Load(byte[] binaryData, Web.BinaryStreamType binaryStreamType);
[Visual Basic]
Public Sub Load(ByVal binaryData As Byte(), ByVal binaryStreamType As Web.BinaryStreamType)
Member Description
binaryData

Specifies a byte array from which the data is loaded.

binaryStreamType

Specifies one of the BinaryStreamType values.

Load(String, StringStreamType)

Exchanges the currently selected text with text in the specified format. The new text is read from the specified string.

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

Specifies a string from which the data is loaded.

stringStreamType

Specifies one of the StringStreamType values.

See Also