Class SectionColumnsDialogViewModel
The view model of SectionColumnsDialog.
Namespace: Telerik.Windows.Controls.RichTextBoxUI.Dialogs.SectionColumns
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class SectionColumnsDialogViewModel : ViewModelBase, INotifyPropertyChanged
Constructors
SectionColumnsDialogViewModel()
Declaration
public SectionColumnsDialogViewModel()
Properties
ApplyChangesCommand
Executes the command to apply changes made in the Section Columns dialog.
Declaration
public ICommand ApplyChangesCommand { get; }
Property Value
System.Windows.Input.ICommand
|
CancelChangesCommand
Represents the command that cancels changes made in the Section Columns dialog.
Declaration
public ICommand CancelChangesCommand { get; }
Property Value
System.Windows.Input.ICommand
|
ColumnsCount
Gets the number of columns defined in the section columns dialog.
Declaration
public int ColumnsCount { get; set; }
Property Value
System.Int32
|
ColumnsItemsSource
Gets the items source for the columns in the SectionColumnsDialog view model.
Declaration
public ObservableCollection<SectionColumnDataViewModel> ColumnsItemsSource { get; set; }
Property Value
System.Collections.ObjectModel.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
public bool EqualColumnWidth { get; set; }
Property Value
System.Boolean
|
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
System.Boolean
|
MaxColumnsCount
Gets the maximum number of columns that can be set in the section columns dialog.
Declaration
public int MaxColumnsCount { get; }
Property Value
System.Int32
|
SelectedSectionColumnsLayout
Gets or sets the predefined selected section columns layout.
Declaration
public Nullable<SectionColumnsLayout> SelectedSectionColumnsLayout { get; set; }
Property Value
System.Nullable<SectionColumnsLayout>
|
Methods
GetSectionColumnsCollection()
Retrieves the collection of section columns in the SectionColumnsDialogViewModel.
Declaration
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
public void InitializeViewModel(SectionColumnCollection collection, double pageWidth, double pageMargin)
Parameters
SectionColumnCollection
collection
|
System.Double
pageWidth
|
System.Double
pageMargin
|
Events
ApplyChangesRequested
Declaration
public event EventHandler ApplyChangesRequested
Event Type
System.EventHandler
|
CancelChangesRequested
Declaration
public event EventHandler CancelChangesRequested
Event Type
System.EventHandler
|