Skype:TextControlSupport
Orders:877-462-4772
TX Text Control - word processing components.

Selection.Load Method

Description:  Overloaded. Exchanges the selected text with text in a certain format. The new text is read from a file, a byte array or a string. If neither a file path nor a byte array or string is specified, Text Control opens a file open dialogbox to select a file.

Syntax: 
[C#]
public DialogResult Load();
public DialogResult Load(StreamType streamType);
public void Load(string path, StreamType streamType);
public void Load(FileStream fileStream, StreamType streamType);
public void Load(byte[] binaryData, BinaryStreamType binaryStreamType);
public void Load(string stringData, StringStreamType stringStreamType);
public DialogResult Load(StreamType streamType, LoadSettings loadSettings);
public void Load(string path, StreamType streamType, LoadSettings loadSettings);
public void Load(FileStream fileStream, StreamType streamType, LoadSettings loadSettings);
public void Load(byte[] binaryData, BinaryStreamType binaryStreamType, LoadSettings loadSettings);
public void Load(string stringData, StringStreamType stringStreamType, LoadSettings loadSettings);
[Visual Basic]
Public Function Load() As DialogResult
Public Function Load(ByVal streamType As StreamType) As DialogResult
Public Sub Load(ByVal path As String, ByVal streamType As StreamType)
Public Sub Load(ByVal fileStream As FileStream, ByVal streamType As StreamType)
Public Sub Load(ByVal binaryData As Byte(), ByVal binaryStreamType As BinaryStreamType)
Public Sub Load(ByVal stringData As String, ByVal stringStreamType As StringStreamType)
Public Function Load(ByVal streamType As StreamType, ByVal loadSettings As LoadSettings) As DialogResult
Public Sub Load(ByVal path As String, ByVal streamType As StreamType, ByVal loadSettings As LoadSettings)
Public Sub Load(ByVal fileStream As FileStream, ByVal streamType As StreamType, ByVal loadSettings As LoadSettings)
Public Sub Load(ByVal binaryData As Byte(), ByVal binaryStreamType As BinaryStreamType, ByVal loadSettings As LoadSettings)
Public Sub Load(ByVal stringData As String, ByVal stringStreamType As StringStreamType, ByVal loadSettings As LoadSettings)
Member   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.

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

Return Value:  The implementations that open a dialog box return the dialog's result value.

Remarks:  The methods opening a dialog box are not available through the Selection object of a ServerTextControl.
None of these methods is available through the Selection object of a BrowserTextControl.

See also:  Text Selections and Character Input, Graphical Overview.
External verification page for ISO 9000:2000 certificate
ISO 9001:2000
certified