TXTextControl.ServerTextControl.Load Method

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

Load(String, StreamType)

Loads text formatted with the specified format. The new text is read from the specified file.

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

Specifies a file from which the data is loaded.

streamType

Specifies one of the StreamType values.

Load(FileStream, StreamType)

Loads text formatted with the specified format. The new text is read from the specified file stream.

[C#]
public void Load(System.IO.FileStream fileStream, StreamType streamType);
[Visual Basic]
Public Sub Load(ByVal fileStream As System.IO.FileStream, ByVal streamType As 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)

Loads text formatted with the specified format. The new text is read from the specified byte array.

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

Specifies a byte array from which the data is loaded.

binaryStreamType

Specifies one of the BinaryStreamType values.

Load(String, StringStreamType)

Loads text formatted with the specified format. The new text is read from the specified string.

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

Specifies a string from which the data is loaded.

stringStreamType

Specifies one of the StringStreamType values.

Load(String, StreamType, LoadSettings)

Loads text formatted with the specified format. The new text is read from the specified file and loaded using the given special settings.

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

Specifies a file from which the data is loaded.

streamType

Specifies one of the StreamType values.

loadSettings

Specifies a LoadSettings object with additional information and settings for the load operation.

Load(FileStream, StreamType, LoadSettings)

Loads text formatted with the specified format. The new text is read from the specified file stream and loaded using the given special settings.

[C#]
public void Load(System.IO.FileStream fileStream, StreamType streamType, LoadSettings loadSettings);
[Visual Basic]
Public Sub Load(ByVal fileStream As System.IO.FileStream, ByVal streamType As StreamType, ByVal loadSettings As LoadSettings)
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.

loadSettings

Specifies a LoadSettings object with additional information and settings for the load operation.

Load(Byte[], BinaryStreamType, LoadSettings)

Loads text formatted with the specified format. The new text is read from the specified byte array and loaded using the given special settings.

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

Specifies a byte array from which the data is loaded.

binaryStreamType

Specifies one of the BinaryStreamType values.

loadSettings

Specifies a LoadSettings object with additional information and settings for the load operation.

Load(String, StringStreamType, LoadSettings)

Loads text formatted with the specified format. The new text is read from the specified string and loaded using the given special settings.

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

Specifies a string from which the data is loaded.

stringStreamType

Specifies one of the StringStreamType values.

loadSettings

Specifies a LoadSettings object with additional information and settings for the load operation.

See Also