Saves the contents of the RichTextEditor to a RTF file.

Namespace: RTE
Assembly: RichTextEditor (in RichTextEditor.dll) Version: 8.0.0.0 (8.0.0.0)

Syntax

C#
public void SaveRTF(
	string path
)
Visual Basic
Public Sub SaveRTF ( _
	path As String _
)
Visual C++
public:
void SaveRTF(
	String^ path
)

Parameters

path
Type: System..::..String
The name and location of the file to save.

Remarks

The SaveRTF method enables you to save the entire contents of the control to a RTF file. If the file name that is passed to the path parameter already exists at the specified directory, the file will be overwritten without notice. You can use the LoadFile, LoadWord, LoadRTF, LoadText method to load the contents of a file into the RichTextEditor.

Examples

CopyC#
editor1.SaveRTF("~/doc/mtRTF.rtf");

See Also