RichEditControl.CreateRibbon(RichEditToolbarType) Method

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

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v21.2.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