Skip to main content
A newer version of this page is available. .

RichEditControl.CreateRibbon(RichEditToolbarType) Method

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

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v19.1.dll

Declaration

public RibbonControl CreateRibbon(
    RichEditToolbarType toolbarType
)

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