Represents the GeneralSectionViewModel class.
Definition
Namespace:Telerik.Windows.Controls.RichTextBoxUI.Dialogs
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class GeneralSectionViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable, IEditableObject
Inheritance: objectViewModelBaseGeneralSectionViewModel
Implements:
Inherited Members
Constructors
Constructs the GeneralSectionViewModel.
public GeneralSectionViewModel(SdtProperties properties, StyleCollection documentStyles)
The properties of the content control.
documentStylesStyleCollectionThe styles defined in the document.
Properties
Gets the available styles inside the document.
public RadObservableCollection<StyleDefinition> AvailableStyles { get; }
Gets or sets whether there is a selected style applied to the contents of the control.
public bool HasSelectedStyle { get; set; }
Gets or sets the locked state of the content of the control.
public bool IsContentLocked { get; set; }
Gets or sets whether the control should be deleted after the content is edited.
public bool IsTemporary { get; set; }
Gets or sets the appearance of the control.
public OutlineAppearance? OutlineAppearance { get; set; }
Gets the available appearances.
public IEnumerable<EnumMemberViewModel> OutlineAppearances { get; }
OutlineColor
Color?
Gets or sets the color of the control.
public Color? OutlineColor { get; set; }
Gets or sets the selected style name.
public string SelectedStyleName { get; set; }
Methods
Starts the editing cycle.
public void BeginEdit()
Implements:
Finishes the editing cycle and reverts all the changes.
public void CancelEdit()
Implements:
Finishes the editing cycle and retains all the changes.
public void EndEdit()
Implements: