New to Telerik UI for WPFStart a free 30-day trial

View model of the CreateUpdateSpreadsheetNameDialog.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class CreateUpdateSpreadsheetNameDialogViewModel : DialogViewModelBase<CreateUpdateSpreadsheetNameDialogContext>

Inheritance: objectDialogViewModelBase<CreateUpdateSpreadsheetNameDialogContext>CreateUpdateSpreadsheetNameDialogViewModel

Inherited Members DialogViewModelBase<CreateUpdateSpreadsheetNameDialogContext>.Context

Constructors

Initializes a new instance of the CreateUpdateSpreadsheetNameDialogViewModel class.

C#
public CreateUpdateSpreadsheetNameDialogViewModel(CreateUpdateSpreadsheetNameDialogContext context, Action closeDialogAction)
Parameters:contextCreateUpdateSpreadsheetNameDialogContext

The context.

closeDialogActionAction

The close dialog action.

Properties

Gets the value indicating whether the refers to value can be changed.

C#
public bool CanChangeRefersTo { get; }
Property Value:

The value indicating whether the refers to value can be changed.

Gets a value indicating whether scope can be changed.

C#
public bool CanChangeScope { get; }
Property Value:

The value indicating whether scope can be changed.

Gets or sets the close command.

C#
public ICommand CloseCommand { get; set; }
Property Value:

The close command.

Gets or sets the comment for the name.

C#
public string Comment { get; set; }
Property Value:

The comment.

Gets the dialog header.

C#
public string DialogHeader { get; }
Property Value:

The dialog header.

Gets or sets the name.

C#
public string Name { get; set; }
Property Value:

The name.

Gets or sets the ok command.

C#
public ICommand OkCommand { get; set; }
Property Value:

The ok command.

Gets or sets the location of the range that the name refers to.

C#
public string RefersTo { get; set; }
Property Value:

The location of the range that the name refers to.

Scopes

IEnumerable<SpreadsheetNameCollectionScope>

Gets the scopes.

C#
public IEnumerable<SpreadsheetNameCollectionScope> Scopes { get; }
Property Value:

The scopes.

SelectedScope

SpreadsheetNameCollectionScope

Gets or sets the selected scope of the name.

C#
public SpreadsheetNameCollectionScope SelectedScope { get; set; }
Property Value:

The selected scope.

Methods

Applies the changes.

C#
public bool ApplyChanges()
Returns:

bool

The value representing whether the changes have been applied.