Back to Devexpress

RichEditControl.CreateRibbon() Method

windowsforms-devexpress-dot-xtrarichedit-dot-richeditcontrol-0a1aa0b9.md

latest3.6 KB
Original Source

RichEditControl.CreateRibbon() Method

Creates a set of ribbon tabs with RichEditControl-specific actions at runtime.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.XtraRichEdit.v25.2.dll

NuGet Package : DevExpress.Win.RichEdit

Declaration

csharp
public RibbonControl CreateRibbon()
vb
Public Function CreateRibbon As RibbonControl

Returns

TypeDescription
RibbonControl

A RibbonControl object containing all RichEditControl-specific ribbon tabs.

|

Example

csharp
RibbonControl ribbon = richEditControl1.CreateRibbon();
this.Controls.Add(ribbon);
vb
Dim ribbon As RibbonControl = richEditControl1.CreateRibbon()
Me.Controls.Add(ribbon)

The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateRibbon() method.

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-rich-edit-manage-tracked-changes/CS/XtraRichEdit_TrackChanges/Form1.cs#L21

csharp
InitializeComponent();
this.Controls.Add(richEditControl1.CreateRibbon());
richEditControl1.LoadDocument("DocumentWithRevisions.docx");

winforms-richedit-link-hyphenation-dictionaries/CS/Form1.cs#L27

csharp
InitializeComponent();
this.Controls.Add(richEditControl.CreateRibbon());

winforms-rich-edit-manage-tracked-changes/VB/XtraRichEdit_TrackChanges/Form1.vb#L16

vb
InitializeComponent()
Me.Controls.Add(richEditControl1.CreateRibbon())
richEditControl1.LoadDocument("DocumentWithRevisions.docx")

winforms-richedit-link-hyphenation-dictionaries/VB/Form1.vb#L26

vb
InitializeComponent()
Me.Controls.Add(richEditControl.CreateRibbon())

See Also

Command UI in Rich Text Editor for WinForms

RichEditControl Class

RichEditControl Members

DevExpress.XtraRichEdit Namespace