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

Defines the fluent API for configuring the PDFViewerMessagesDialogsExportAsDialogSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class PDFViewerMessagesDialogsExportAsDialogSettingsBuilder

Inheritance: objectPDFViewerMessagesDialogsExportAsDialogSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Methods

Specifies the default filename shown in the export dialog's file name input field when no specific document name is available.

C#
public PDFViewerMessagesDialogsExportAsDialogSettingsBuilder DefaultFileName(string value)
Parameters:valuestring

The value that configures the defaultfilename.

Returns:

PDFViewerMessagesDialogsExportAsDialogSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages => messages
.Dialogs(dialogs => dialogs
.ExportAsDialog(expDialog => expDialog.DefaultFileName("PDFDocument"))
)
)
)

Specifies the localization messages for form field labels within the export dialog, including file name input, format selection, and page selection controls.

C#
public PDFViewerMessagesDialogsExportAsDialogSettingsBuilder Labels(Action<PDFViewerMessagesDialogsExportAsDialogLabelsSettingsBuilder> configurator)
Parameters:configuratorAction<PDFViewerMessagesDialogsExportAsDialogLabelsSettingsBuilder>

The action that configures the labels.

Returns:

PDFViewerMessagesDialogsExportAsDialogSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages =&gt; messages
.Dialogs(dialogs =&gt; dialogs
.ExportAsDialog(expDialog =&gt; expDialog.Labels(labels =&gt; labels.FileName("Filename")))
)
)
)

Specifies the display text for the PDF export format option in the export dialog's file type dropdown list.

C#
public PDFViewerMessagesDialogsExportAsDialogSettingsBuilder Pdf(string value)
Parameters:valuestring

The value that configures the pdf.

Returns:

PDFViewerMessagesDialogsExportAsDialogSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages =&gt; messages
.Dialogs(dialogs =&gt; dialogs
.ExportAsDialog(expDialog =&gt; expDialog.Pdf(".pdf"))
)
)
)

Specifies the display text for the PNG export format option in the export dialog's file type dropdown list.

C#
public PDFViewerMessagesDialogsExportAsDialogSettingsBuilder Png(string value)
Parameters:valuestring

The value that configures the png.

Returns:

PDFViewerMessagesDialogsExportAsDialogSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages =&gt; messages
.Dialogs(dialogs =&gt; dialogs
.ExportAsDialog(expDialog =&gt; expDialog.Png(".png"))
)
)
)

Specifies the display text for the SVG export format option in the export dialog's file type dropdown list.

C#
public PDFViewerMessagesDialogsExportAsDialogSettingsBuilder Svg(string value)
Parameters:valuestring

The value that configures the svg.

Returns:

PDFViewerMessagesDialogsExportAsDialogSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages =&gt; messages
.Dialogs(dialogs =&gt; dialogs
.ExportAsDialog(expDialog =&gt; expDialog.Svg(".svg"))
)
)
)

Specifies the title text displayed in the export dialog header when users choose to export PDF pages in different formats.

C#
public PDFViewerMessagesDialogsExportAsDialogSettingsBuilder Title(string value)
Parameters:valuestring

The value that configures the title.

Returns:

PDFViewerMessagesDialogsExportAsDialogSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages =&gt; messages
.Dialogs(dialogs =&gt; dialogs
.ExportAsDialog(expDialog =&gt; expDialog.Title("Export..."))
)
)
)