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

Load()

public DialogResult Load();
Public Function Load() As DialogResult

Load(StreamType)

public DialogResult Load(StreamType streamType);
Public Function Load(ByVal streamType As StreamType) As DialogResult

Load(String, StreamType)

public void Load(string path, StreamType streamType);
Public Sub Load(ByVal path As String, ByVal streamType As StreamType)

Load(System.IO.FileStream, StreamType)

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

Load(Byte[], BinaryStreamType)

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

Load(String, StringStreamType)

public void Load(string stringData, StringStreamType stringStreamType);
Public Sub Load(ByVal stringData As String, ByVal stringStreamType As StringStreamType)

Load(StreamType, LoadSettings)

public DialogResult Load(StreamType streamType, LoadSettings loadSettings);
Public Function Load(ByVal streamType As StreamType, ByVal loadSettings As LoadSettings) As DialogResult

Load(String, StreamType, LoadSettings)

public void Load(string path, StreamType streamType, LoadSettings loadSettings);
Public Sub Load(ByVal path As String, ByVal streamType As StreamType, ByVal loadSettings As LoadSettings)

Load(System.IO.FileStream, StreamType, LoadSettings)

public void Load(System.IO.FileStream fileStream, StreamType streamType, LoadSettings loadSettings);
Public Sub Load(ByVal fileStream As System.IO.FileStream, ByVal streamType As StreamType, ByVal loadSettings As LoadSettings)

Load(Byte[], BinaryStreamType, LoadSettings)

public void Load(byte[] binaryData, BinaryStreamType binaryStreamType, LoadSettings loadSettings);
Public Sub Load(ByVal binaryData As Byte(), ByVal binaryStreamType As BinaryStreamType, ByVal loadSettings As LoadSettings)

Load(String, StringStreamType, LoadSettings)

public void Load(string stringData, StringStreamType stringStreamType, LoadSettings loadSettings);
Public Sub Load(ByVal stringData As String, ByVal stringStreamType As StringStreamType, ByVal loadSettings As LoadSettings)

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.
loadSettings Specifies a LoadSettings object with additional information and settings for the load operation.

Return Value

The implementations which open a dialog box return a Selection.DialogResult value.

Examples

The following examples show the usage of the Selection.Load method to insert a file, string or image. Here, first an RTF file is loaded, and then a HTML file is appended to its end.

textControl1.Load ("..\\..\\TestFiles\\Caption.rtf",   
      TXTextControl.StreamType.RichTextFormat); 
textControl1.Selection.Start = textControl1.Text.Length; 
textControl1.Selection.Load ("..\\..\\TestFiles\\Net.htm",  
      TXTextControl.StreamType.HTMLFormat);
TextControl1.Load("..\TestFiles\Caption.rtf", _ 
       TXTextControl.StreamType.RichTextFormat)

TextControl1.Selection.Start = TextControl1.Text.Length 
TextControl1.Selection.Load("..\TestFiles\Net.htm", _
       TXTextControl.StreamType.HTMLFormat)

Remarks

The methods opening a dialog box are not available through the Selection object of a ServerTextControl.