Back to Devexpress

DocumentFormat.Rtf Field

officefileapi-devexpress-dot-xtrarichedit-dot-documentformat-53943114.md

latest5.2 KB
Original Source

DocumentFormat.Rtf Field

The Rich Text Format (RTF).

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public static readonly DocumentFormat Rtf
vb
Public Shared ReadOnly Rtf As DocumentFormat

Field Value

TypeDescription
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

csharp
{
    richEditControl1.LoadDocument("TextWithImages.rtf", DocumentFormat.Rtf);
}

asp-net-web-forms-richedit-work-with-database/CS/ASPxRichEdit_Binding/Default.aspx.cs#L30

csharp
EditedDocuemntID,
DocumentFormat.Rtf,
() => {

word-document-api-automatic-document-conversion-on-web-server/CS/Program.cs#L47

csharp
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

csharp
ribbonControl1.SelectedPage = mailingsRibbonPage1;
richEditControl1.LoadDocument("invitation.rtf", DocumentFormat.Rtf);

winforms-richedit-use-images-in-mail-merge/CS/Form1.cs#L46

csharp
richEditControl1.Document.MailMerge(options, fileName, DocumentFormat.Rtf);

winforms-richedit-save-a-document/VB/SaveDocument/Form1.vb#L26

vb
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

vb
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

vb
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

vb
ribbonControl1.SelectedPage = mailingsRibbonPage1
richEditControl1.LoadDocument("invitation.rtf", DocumentFormat.Rtf)

winforms-richedit-use-images-in-mail-merge/VB/Form1.vb#L38

vb
Dim fileName As String = System.IO.Directory.GetCurrentDirectory() & "MailMergeResult.rtf"
richEditControl1.Document.MailMerge(options, fileName, DocumentFormat.Rtf)
Dim processor As New Process()

See Also

DocumentFormat Struct

DocumentFormat Members

DevExpress.XtraRichEdit Namespace