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, RichTextBoxStreamType)

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
);

Parameters

path
location of the file
fileType
One of the values from RichTextBoxStreamType.

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