ClassSectionColumnsDialogViewModel
The view model of SectionColumnsDialog.
Definition
Namespace:Telerik.Windows.Controls.RichTextBoxUI.Dialogs.SectionColumns
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class SectionColumnsDialogViewModel : ViewModelBase, INotifyPropertyChanged
Inheritance: objectViewModelBaseSectionColumnsDialogViewModel
Implements:
Inherited Members
Constructors
SectionColumnsDialogViewModel()
Declaration
public SectionColumnsDialogViewModel()
Properties
ApplyChangesCommand
Executes the command to apply changes made in the Section Columns dialog.
CancelChangesCommand
Represents the command that cancels changes made in the Section Columns dialog.
ColumnsCount
Gets the number of columns defined in the section columns dialog.
ColumnsItemsSource
Gets the items source for the columns in the SectionColumnsDialog view model.
Declaration
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.
HasLineBetween
Gets or sets a value indicating whether there is a line between columns in the section columns dialog.
Declaration
public bool HasLineBetween { get; set; }
Property Value
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.
SelectedSectionColumnsLayout
Gets or sets the predefined selected section columns layout.
Declaration
public SectionColumnsLayout? SelectedSectionColumnsLayout { get; set; }
Property Value
Methods
GetSectionColumnsCollection()
Retrieves the collection of section columns in the SectionColumnsDialogViewModel.
Declaration
public SectionColumnCollection GetSectionColumnsCollection()
Returns
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
public void InitializeViewModel(SectionColumnCollection collection, double pageWidth, double pageMargin)
Parameters
collection
pageWidth
pageMargin
Events
ApplyChangesRequested
Declaration
public event EventHandler ApplyChangesRequested
Event Value
CancelChangesRequested
Declaration
public event EventHandler CancelChangesRequested
Event Value