officefileapi-devexpress-dot-xtrarichedit-dot-documentformat-53943114.md
The Rich Text Format (RTF).
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public static readonly DocumentFormat Rtf
Public Shared ReadOnly Rtf As DocumentFormat
| Type | Description |
|---|---|
| DocumentFormat |
A document format.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Rtf field.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-richedit-save-a-document/CS/SaveDocument/Form1.cs#L33
{
richEditControl1.LoadDocument("TextWithImages.rtf", DocumentFormat.Rtf);
}
asp-net-web-forms-richedit-work-with-database/CS/ASPxRichEdit_Binding/Default.aspx.cs#L30
EditedDocuemntID,
DocumentFormat.Rtf,
() => {
word-document-api-automatic-document-conversion-on-web-server/CS/Program.cs#L47
dictF.Add(DocumentFormat.OpenXml, "docx");
dictF.Add(DocumentFormat.Rtf, "rtf");
dictF.Add(DocumentFormat.PlainText, "txt");
winforms-richedit-control-mail-merge/CS/MailMerge/Form1.cs#L17
ribbonControl1.SelectedPage = mailingsRibbonPage1;
richEditControl1.LoadDocument("invitation.rtf", DocumentFormat.Rtf);
winforms-richedit-use-images-in-mail-merge/CS/Form1.cs#L46
richEditControl1.Document.MailMerge(options, fileName, DocumentFormat.Rtf);
winforms-richedit-save-a-document/VB/SaveDocument/Form1.vb#L26
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
richEditControl1.LoadDocument("TextWithImages.rtf", DocumentFormat.Rtf)
End Sub
asp-net-web-forms-richedit-work-with-database/VB/ASPxRichEdit_Binding/Default.aspx.vb#L38
EditedDocuemntID = view.Table.Rows(0)("Id").ToString() ' Guid type
If view.Count <> 0 Then RichEdit.Open(EditedDocuemntID, DocumentFormat.Rtf, Function()
Dim docBytes As Byte() = CType(view.Table.Rows(0)("DocBytes"), Byte())
word-document-api-automatic-document-conversion-on-web-server/VB/Program.vb#L42
dictF.Add(DocumentFormat.OpenXml, "docx")
dictF.Add(DocumentFormat.Rtf, "rtf")
dictF.Add(DocumentFormat.PlainText, "txt")
winforms-richedit-control-mail-merge/VB/MailMerge/Form1.vb#L15
ribbonControl1.SelectedPage = mailingsRibbonPage1
richEditControl1.LoadDocument("invitation.rtf", DocumentFormat.Rtf)
winforms-richedit-use-images-in-mail-merge/VB/Form1.vb#L38
Dim fileName As String = System.IO.Directory.GetCurrentDirectory() & "MailMergeResult.rtf"
richEditControl1.Document.MailMerge(options, fileName, DocumentFormat.Rtf)
Dim processor As New Process()
See Also