Class
SectionColumnsDialogViewModel

The view model of SectionColumnsDialog.

Definition

Namespace:Telerik.Windows.Controls.RichTextBoxUI.Dialogs.SectionColumns

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class SectionColumnsDialogViewModel : ViewModelBase, INotifyPropertyChanged

Inheritance: objectViewModelBaseSectionColumnsDialogViewModel

Implements: INotifyPropertyChanged

Inherited Members ViewModelBase.OnPropertyChanged(string)ViewModelBase.PropertyChanged

Constructors

SectionColumnsDialogViewModel()

Declaration

cs-api-definition
public SectionColumnsDialogViewModel()

Properties

ApplyChangesCommand

Executes the command to apply changes made in the Section Columns dialog.

Declaration

cs-api-definition
public ICommand ApplyChangesCommand { get; }

Property Value

ICommand

CancelChangesCommand

Represents the command that cancels changes made in the Section Columns dialog.

Declaration

cs-api-definition
public ICommand CancelChangesCommand { get; }

Property Value

ICommand

ColumnsCount

Gets the number of columns defined in the section columns dialog.

Declaration

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

Property Value

int

ColumnsItemsSource

Gets the items source for the columns in the SectionColumnsDialog view model.

Declaration

cs-api-definition
public ObservableCollection<SectionColumnDataViewModel> ColumnsItemsSource { get; set; }

Property Value

ObservableCollection<SectionColumnDataViewModel>

The collection of column items that can be used to define the layout of columns in the document.

EqualColumnWidth

Gets or sets a value indicating whether all columns in the section should have equal width.

Declaration

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

Property Value

bool

HasLineBetween

Gets or sets a value indicating whether there is a line between columns in the section columns dialog.

Declaration

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

Property Value

bool

true if a line is displayed between columns; otherwise, false.

MaxColumnsCount

Gets the maximum number of columns that can be set in the section columns dialog.

Declaration

cs-api-definition
public int MaxColumnsCount { get; }

Property Value

int

SelectedSectionColumnsLayout

Gets or sets the predefined selected section columns layout.

Declaration

cs-api-definition
public SectionColumnsLayout? SelectedSectionColumnsLayout { get; set; }

Property Value

SectionColumnsLayout?

Methods

GetSectionColumnsCollection()

Retrieves the collection of section columns in the SectionColumnsDialogViewModel.

Declaration

cs-api-definition
public SectionColumnCollection GetSectionColumnsCollection()

Returns

SectionColumnCollection

A collection of section column objects that represent the current configuration of section columns.

InitializeViewModel(SectionColumnCollection, double, double)

Initializes the view model for the SectionColumnsDialog.

Declaration

cs-api-definition
public void InitializeViewModel(SectionColumnCollection collection, double pageWidth, double pageMargin)

Parameters

collection

SectionColumnCollection

pageWidth

double

pageMargin

double

Events

ApplyChangesRequested

Declaration

cs-api-definition
public event EventHandler ApplyChangesRequested

Event Value

EventHandler

CancelChangesRequested

Declaration

cs-api-definition
public event EventHandler CancelChangesRequested

Event Value

EventHandler