NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

RichTextBox.LoadFile (String, RichTextBoxStreamType)

Loads the contents of a RTF or text into a RichTextBox control.

[Visual Basic]
Overloads Public Sub LoadFile( _
   ByVal path As String, _
   ByVal fileType As RichTextBoxStreamType _
)
[C#]
public void LoadFile(
   string path,
   RichTextBoxStreamType fileType
);
[C++]
public: void LoadFile(
   String* path,
   RichTextBoxStreamType fileType
);
[JScript]
public function LoadFile(
   path : String,
   fileType : RichTextBoxStreamType
);

Parameters

path
location of the file
fileType
Value from RichTextBoxStreamType

Exceptions

Exception Type Condition
ArgumentException ArgumentException When an invalid fileType is specified.
Exception System.Exception When error occurs during file load operation.

See Also

RichTextBox Class | RichTextBox Members | System.WinForms Namespace | RichTextBox.LoadFile Overload List