RichEditControl.CreateRibbon(RichEditToolbarType) Method
Creates a set of RichEditControl-specific ribbon tabs at runtime.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.XtraRichEdit.v22.2.dll
NuGet Package: DevExpress.Win.RichEdit
Declaration
Parameters
Name | Type | Description |
---|---|---|
toolbarType | RichEditToolbarType | One of the RichEditToolbarType enumeration values indicating the ribbon tabs to be added. |
Returns
Type | Description |
---|---|
RibbonControl | A RibbonControl object containing given ribbon tabs. |
Example
RibbonControl ribbon = richEditControl1.CreateRibbon(RichEditToolbarType.File | RichEditToolbarType.Home | RichEditToolbarType.PageLayout);
this.Controls.Add(ribbon);
See Also