MobileForms Toolkit Documentation

RichTextBox.SaveFile Method (String, RichTextBoxStreamType)

Saves the contents of the RichTextBox to a specific type of file.

public void SaveFile(
string path,
RichTextBoxStreamType fileType
);

Parameters

path
The name and location of the file to save.
fileType
One of the RichTextBoxStreamType values.

Exceptions

Exception Type Condition
ArgumentException An invalid file type is specified in the fileType parameter.
IOException An error occurs in saving the contents of the control to a file.

See Also

RichTextBox Class | Resco.Controls.RichTextBox Namespace | RichTextBox.SaveFile Overload List