RichEditControl.CreateRibbon(RichEditToolbarType) Method

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

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v20.1.dll

Declaration

public RibbonControl CreateRibbon(
    RichEditToolbarType toolbarType
)
Public Function CreateRibbon(
    toolbarType As RichEditToolbarType
) As RibbonControl

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.

Examples

RibbonControl ribbon = richEditControl1.CreateRibbon(RichEditToolbarType.File | RichEditToolbarType.Home | RichEditToolbarType.PageLayout);
this.Controls.Add(ribbon);
See Also