New to Telerik UI for ASP.NET MVC? Download free 30-day trial

PDFViewerMessagesToolbarZoomSettingsBuilder

Methods

ActualWidth(System.String)

Parameters

value - System.String

The value that configures the actualwidth.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb
                        .Zoom(zoom => zoom.ActualWidth("Actual Width")) 
                    )
                )
             )

AutoWidth(System.String)

Parameters

value - System.String

The value that configures the autowidth.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb
                        .Zoom(zoom => zoom.AutoWidth("Automatic Width")) 
                    )
                )
             )

FitToWidth(System.String)

Parameters

value - System.String

The value that configures the fittowidth.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb
                        .Zoom(zoom => zoom.FitToWidth("Fit To Width")) 
                    )
                )
             )

FitToPage(System.String)

Parameters

value - System.String

The value that configures the fittopage.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb
                        .Zoom(zoom => zoom.FitToPage("Fit To Page")) 
                    )
                )
             )

ZoomIn(System.String)

Parameters

value - System.String

The value that configures the zoomin.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb
                        .Zoom(zoom => zoom.ZoomIn("Zoom In")) 
                    )
                )
             )

ZoomLevel(System.String)

Parameters

value - System.String

The value that configures the zoomlevel.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb
                        .Zoom(zoom => zoom.ZoomLevel("Zoom Level")) 
                    )
                )
             )

ZoomOut(System.String)

Parameters

value - System.String

The value that configures the zoomout.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Toolbar(tb => tb
                        .Zoom(zoom => zoom.ZoomOut("Zoom Out")) 
                    )
                )
             )

In this article
Not finding the help you need?