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

The view model of SectionColumnsDialog.

Definition

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

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class SectionColumnsDialogViewModel : ViewModelBase, INotifyPropertyChanged

Inheritance: objectViewModelBaseSectionColumnsDialogViewModel

Implements: INotifyPropertyChanged

Inherited Members ViewModelBase.OnPropertyChanged(string)ViewModelBase.PropertyChanged

Constructors

C#
public SectionColumnsDialogViewModel()

Properties

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

C#
public ICommand ApplyChangesCommand { get; }

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

C#
public ICommand CancelChangesCommand { get; }

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

C#
public int ColumnsCount { get; set; }

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

C#
public ObservableCollection<SectionColumnDataViewModel> ColumnsItemsSource { get; set; }
Property Value:

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

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

C#
public bool EqualColumnWidth { get; set; }

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

C#
public bool HasLineBetween { get; set; }
Property Value:

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

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

C#
public int MaxColumnsCount { get; }

Gets or sets the predefined selected section columns layout.

C#
public SectionColumnsLayout? SelectedSectionColumnsLayout { get; set; }

Methods

Retrieves the collection of section columns in the SectionColumnsDialogViewModel.

C#
public SectionColumnCollection GetSectionColumnsCollection()
Returns:

SectionColumnCollection

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

Initializes the view model for the SectionColumnsDialog.

C#
public void InitializeViewModel(SectionColumnCollection collection, double pageWidth, double pageMargin)
Parameters:collectionSectionColumnCollectionpageWidthdoublepageMargindouble

Events

C#
public event EventHandler ApplyChangesRequested
C#
public event EventHandler CancelChangesRequested