View model of the CreateUpdateSpreadsheetNameDialog.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
public class CreateUpdateSpreadsheetNameDialogViewModel : DialogViewModelBase<CreateUpdateSpreadsheetNameDialogContext>
Inheritance: objectDialogViewModelBase<CreateUpdateSpreadsheetNameDialogContext>CreateUpdateSpreadsheetNameDialogViewModel
Inherited Members
Constructors
Initializes a new instance of the CreateUpdateSpreadsheetNameDialogViewModel class.
public CreateUpdateSpreadsheetNameDialogViewModel(CreateUpdateSpreadsheetNameDialogContext context, Action closeDialogAction)
The context.
closeDialogActionActionThe close dialog action.
Properties
Gets the value indicating whether the refers to value can be changed.
public bool CanChangeRefersTo { get; }
The value indicating whether the refers to value can be changed.
Gets a value indicating whether scope can be changed.
public bool CanChangeScope { get; }
The value indicating whether scope can be changed.
Gets or sets the close command.
public ICommand CloseCommand { get; set; }
The close command.
Gets or sets the comment for the name.
public string Comment { get; set; }
The comment.
Gets the dialog header.
public string DialogHeader { get; }
The dialog header.
Gets or sets the ok command.
public ICommand OkCommand { get; set; }
The ok command.
Gets or sets the location of the range that the name refers to.
public string RefersTo { get; set; }
The location of the range that the name refers to.
Scopes
IEnumerable<SpreadsheetNameCollectionScope>
Gets the scopes.
public IEnumerable<SpreadsheetNameCollectionScope> Scopes { get; }
The scopes.
SelectedScope
SpreadsheetNameCollectionScope
Gets or sets the selected scope of the name.
public SpreadsheetNameCollectionScope SelectedScope { get; set; }
The selected scope.
Methods
Applies the changes.
public bool ApplyChanges()
The value representing whether the changes have been applied.