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 );
Exception Type | Condition |
---|---|
ArgumentException | ArgumentException When an invalid fileType is specified. |
Exception | System.Exception When error occurs during file load operation. |
RichTextBox Class | RichTextBox Members | System.WinForms Namespace | RichTextBox.LoadFile Overload List