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.SaveFile (String)

Saves the contents of a RichTextBox control to a file.

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

Parameters

path
location of the file

Exceptions

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

See Also

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