PDFViewerMessagesToolbarSettingsBuilder

Methods

ContextMenu(System.String)

Specifies the text for the toolbar's context menu button when contextMenu is enabled. This button contains the overflow menu with open, download, and print tools.

Parameters

value - System.String

The value for ContextMenu

RETURNS

Returns the current PDFViewerMessagesToolbarSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb.ContextMenu("Menu"))
                )
             )
             

Open(System.String)

Specifies the text displayed for the open file tool in the toolbar. This tool allows users to browse and select PDF files from their local file system.

Parameters

value - System.String

The value for Open

RETURNS

Returns the current PDFViewerMessagesToolbarSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb.Open("Open"))
                )
             )
             

ExportAs(System.String)

Specifies the text displayed for the export tool in the toolbar when using DPL processing. This tool enables users to export individual pages as PNG or SVG files.

Parameters

value - System.String

The value for ExportAs

RETURNS

Returns the current PDFViewerMessagesToolbarSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb.ExportAs("Export"))
                )
             )
             

Download(System.String)

Specifies the text displayed for the download tool in the toolbar. This tool allows users to download the currently loaded PDF file to their local file system.

Parameters

value - System.String

The value for Download

RETURNS

Returns the current PDFViewerMessagesToolbarSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb.Download("Download"))
                )
             )
             

Pager(System.Action)

Specifies the localization messages for the pager component in the toolbar. Contains text for navigation buttons and page information display.

Parameters

configurator - System.Action<PDFViewerMessagesToolbarPagerSettingsBuilder>

The configurator for the pager setting.

RETURNS

Returns the current instance of PDFViewerMessagesToolbarSettingsBuilder .

Print(System.String)

Parameters

value - System.String

The value for Print

RETURNS

Returns the current PDFViewerMessagesToolbarSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb.Print("Print"))
                )
             )
             

ToggleSelection(System.String)

Parameters

value - System.String

The value for ToggleSelection

RETURNS

Returns the current PDFViewerMessagesToolbarSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb.ToggleSelection("Enable Selection"))
                )
             )
             

TogglePan(System.String)

Parameters

value - System.String

The value for TogglePan

RETURNS

Returns the current PDFViewerMessagesToolbarSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb.TogglePan("Enable Panning"))
                )
             )
             

Search(System.String)

Parameters

value - System.String

The value for Search

RETURNS

Returns the current PDFViewerMessagesToolbarSettingsBuilder instance.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb.Search("Search"))
                )
             )
             

Zoom(System.Action)

Specifies the localization messages for the zoom tool dropdown in the toolbar. Contains text for various zoom options including predefined zoom levels and zoom controls.

Parameters

configurator - System.Action<PDFViewerMessagesToolbarZoomSettingsBuilder>

The configurator for the zoom setting.

RETURNS

Returns the current instance of PDFViewerMessagesToolbarSettingsBuilder .