Skip to main content

PdfViewer.CreateRibbon(PdfViewerToolbarKind) Method

Creates a set of ribbon tabs with actions specific to the PdfViewer control.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v23.2.dll

NuGet Package: DevExpress.Win.PdfViewer

Declaration

public void CreateRibbon(
    PdfViewerToolbarKind flags
)

Parameters

Name Type Description
flags PdfViewerToolbarKind

The PdfViewerToolbarKind enumeration value specifying a set of ribbon tabs that should be created.

Remarks

The code sample below creates a ribbon UI for the PDF Viewer:

public Form1()
{
    InitializeComponent();
    this.Controls.Add(pdfViewer);
    pdfViewer.CreateRibbon(PdfViewerToolbarKind.Main);
}
See Also