# PDFViewerMessagesDialogsSettingsBuilder

## Methods

### ExportAsDialog(System.Action)

Specifies the localization messages for the export dialog that appears when using DPL processing. Contains text for dialog elements including title, file format options, and form labels.

#### Parameters

##### configurator - System.Action<[PDFViewerMessagesDialogsExportAsDialogSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewermessagesdialogsexportasdialogsettingsbuilder)>

The configurator for the exportasdialog setting.

#### RETURNS

Returns the current instance of [PDFViewerMessagesDialogsSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewermessagesdialogssettingsbuilder) .

### OkText(System.String)

Specifies the text for the confirmation button in dialog windows. This button is used to confirm actions and close dialogs with positive results.

#### Parameters

##### value - `System.String`

The value for OkText

#### RETURNS

Returns the current [PDFViewerMessagesDialogsSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewermessagesdialogssettingsbuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Dialogs(dialogs => dialogs.OkText("OK"))
                )
             )
             
```

### Save(System.String)

Specifies the text for the save/download button in export and file dialogs. This button initiates the file save or download operation.

#### Parameters

##### value - `System.String`

The value for Save

#### RETURNS

Returns the current [PDFViewerMessagesDialogsSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewermessagesdialogssettingsbuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Dialogs(dialogs => dialogs.Save("Save"))
                )
             )
             
```

### Cancel(System.String)

Specifies the text for the cancel button in dialog windows. This button closes dialogs without performing any action or saving changes.

#### Parameters

##### value - `System.String`

The value for Cancel

#### RETURNS

Returns the current [PDFViewerMessagesDialogsSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewermessagesdialogssettingsbuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
                .Messages(messages => messages
                    .Dialogs(dialogs => dialogs.Cancel("Cancel"))
                )
             )
             
```

### Search(System.Action)

Specifies the localization messages for the search dialog that appears when users perform text searches within PDF documents. Contains text for search controls and navigation buttons.

#### Parameters

##### configurator - System.Action<[PDFViewerMessagesDialogsSearchSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewermessagesdialogssearchsettingsbuilder)>

The configurator for the search setting.

#### RETURNS

Returns the current instance of [PDFViewerMessagesDialogsSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewermessagesdialogssettingsbuilder) .
