Saves the contents of a RichTextBox control to a file.
[Visual Basic] Overloads Public Sub SaveFile( _ ByVal path As String, _ ByVal fileType As RichTextBoxStreamType _ ) [C#] public void SaveFile( string path, RichTextBoxStreamType fileType ); [C++] public: void SaveFile( String* path, RichTextBoxStreamType fileType ); [JScript] public function SaveFile( path : String, fileType : RichTextBoxStreamType );
Exception Type | Condition |
---|---|
ArgumentException | ArgumentException When an invalid fileType is specified. |
Exception | System.Exception When error occurs during file save operation. |
RichTextBox Class | RichTextBox Members | System.WinForms Namespace | RichTextBox.SaveFile Overload List