Class
SimpleConditionalFormattingDialogViewModel

Represents a view model for the simple conditional formatting dialog dialog.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public class SimpleConditionalFormattingDialogViewModel : DialogViewModelBase<SimpleConditionalFormattingDialogContext>

Inheritance: objectDialogViewModelBase<SimpleConditionalFormattingDialogContext>SimpleConditionalFormattingDialogViewModel

Inherited Members DialogViewModelBase<SimpleConditionalFormattingDialogContext>.Context

Constructors

SimpleConditionalFormattingDialogViewModel(SimpleConditionalFormattingDialogContext, Action)

Initializes a new instance of the CreateUpdateSpreadsheetNameDialogViewModel class.

Declaration

cs-api-definition
public SimpleConditionalFormattingDialogViewModel(SimpleConditionalFormattingDialogContext context, Action closeDialogAction)

Parameters

context

SimpleConditionalFormattingDialogContext

The context.

closeDialogAction

Action

The close dialog action.

Properties

Argument

Gets or sets the conditional formatting rule argument.

Declaration

cs-api-definition
public string Argument { get; set; }

Property Value

string

Argument1

Gets or sets the second conditional formatting rule argument.

Declaration

cs-api-definition
public string Argument1 { get; set; }

Property Value

string

CloseCommand

Gets or sets the close command.

Declaration

cs-api-definition
public ICommand CloseCommand { get; set; }

Property Value

ICommand

The close command.

ComboBoxItemsSource

Gets the duplicate value types items source.

Declaration

cs-api-definition
public IEnumerable<string> ComboBoxItemsSource { get; }

Property Value

IEnumerable<string>

ComboBoxSelectedItem

Gets of sets the selected duplicate values type.

Declaration

cs-api-definition
public string ComboBoxSelectedItem { get; set; }

Property Value

string

DialogHeader

Gets the dialog header.

Declaration

cs-api-definition
public string DialogHeader { get; }

Property Value

string

The dialog header.

FormatPickerItemsSource

Gets the format picker items source.

Declaration

cs-api-definition
public IEnumerable<PredefinedConditionalFormat> FormatPickerItemsSource { get; }

Property Value

IEnumerable<PredefinedConditionalFormat>

FormattingRuleType

Gets the formatting rule type.

Declaration

cs-api-definition
public ConditionalFormattingRuleType FormattingRuleType { get; }

Property Value

ConditionalFormattingRuleType

IsDate

Gets or sets whether the argument is date.

Declaration

cs-api-definition
public bool IsDate { get; set; }

Property Value

bool

IsPercentage

Gets or sets whether the argument is percentage.

Declaration

cs-api-definition
public bool IsPercentage { get; set; }

Property Value

bool

NumericMaximum

Gets or sets the NumericUpDown maximum value.

Declaration

cs-api-definition
public int NumericMaximum { get; set; }

Property Value

int

NumericMinimum

Gets or sets the NumericUpDown minimum value.

Declaration

cs-api-definition
public int NumericMinimum { get; set; }

Property Value

int

NumericValue

Gets or sets the numeric value.

Declaration

cs-api-definition
public int NumericValue { get; set; }

Property Value

int

OkCommand

Gets or sets the ok command.

Declaration

cs-api-definition
public ICommand OkCommand { get; set; }

Property Value

ICommand

The ok command.

RuleDescription

Gets the rule description.

Declaration

cs-api-definition
public string RuleDescription { get; }

Property Value

string

SelectedFormat

Gets or sets the selected predefined format.

Declaration

cs-api-definition
public PredefinedConditionalFormat SelectedFormat { get; set; }

Property Value

PredefinedConditionalFormat

Methods

ApplyChanges()

Applies the changes.

Declaration

cs-api-definition
public bool ApplyChanges()

Returns

bool

The value representing whether the changes have been applied.