Loads text in a certain format. The complete contents of a TextControl are replaced.

LoadText(String, Web.StreamType)

public void LoadText(string path, Web.StreamType streamType);
Public Sub LoadText(ByVal path As String, ByVal streamType As Web.StreamType)

LoadText(System.IO.FileStream, Web.StreamType)

public void LoadText(System.IO.FileStream fileStream, Web.StreamType streamType);
Public Sub LoadText(ByVal fileStream As System.IO.FileStream, ByVal streamType As Web.StreamType)

LoadText(Byte[], Web.BinaryStreamType)

public void LoadText(byte[] binaryData, Web.BinaryStreamType binaryStreamType);
Public Sub LoadText(ByVal binaryData As Byte(), ByVal binaryStreamType As Web.BinaryStreamType)

LoadText(String, Web.StringStreamType)

public void LoadText(string stringData, Web.StringStreamType stringStreamType);
Public Sub LoadText(ByVal stringData As String, ByVal stringStreamType As Web.StringStreamType)

Parameters

Parameter Description
streamType Specifies one of the StreamType values.
path Specifies a file from which the data is loaded.
fileStream Specifies a file from which the data is loaded. The data is loaded from the stream's current position.
binaryData Specifies a byte array from which the data is loaded.
stringData Specifies a string from which the data is loaded.
binaryStreamType Specifies one of the BinaryStreamType values.
stringStreamType Specifies one of the StringStreamType values.