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

Introduced: X13.

LoadText(String, Web.StreamType)

public Web.MVC.TextControl LoadText(string path, Web.StreamType streamType);
Public Function LoadText(ByVal path As String, ByVal streamType As Web.StreamType) As Web.MVC.TextControl

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

public Web.MVC.TextControl LoadText(System.IO.FileStream fileStream, Web.StreamType streamType);
Public Function LoadText(ByVal fileStream As System.IO.FileStream, ByVal streamType As Web.StreamType) As Web.MVC.TextControl

LoadText(Byte[], Web.BinaryStreamType)

public Web.MVC.TextControl LoadText(byte[] binaryData, Web.BinaryStreamType binaryStreamType);
Public Function LoadText(ByVal binaryData As Byte(), ByVal binaryStreamType As Web.BinaryStreamType) As Web.MVC.TextControl

LoadText(String, Web.StringStreamType)

public Web.MVC.TextControl LoadText(string stringData, Web.StringStreamType stringStreamType);
Public Function LoadText(ByVal stringData As String, ByVal stringStreamType As Web.StringStreamType) As Web.MVC.TextControl

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.

Return Value

A reference to the Web.MVC.TextControl instance to allow method chaining.