Class
GeneralSectionViewModel

Represents the GeneralSectionViewModel class.

Definition

Namespace:Telerik.Windows.Controls.RichTextBoxUI.Dialogs

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class GeneralSectionViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable, IEditableObject

Inheritance: objectViewModelBaseGeneralSectionViewModel

Implements: IDisposableIEditableObjectINotifyPropertyChanged

Inherited Members ViewModelBase.VerifyPropertyName(string)ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.Dispose()ViewModelBase.RaisePropertyChanged(string)ViewModelBase.OnPropertyChanged(string)ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)ViewModelBase.Dispose(bool)ViewModelBase.PropertyChanged

Constructors

GeneralSectionViewModel(SdtProperties, StyleCollection)

Constructs the GeneralSectionViewModel.

Declaration

cs-api-definition
public GeneralSectionViewModel(SdtProperties properties, StyleCollection documentStyles)

Parameters

properties

SdtProperties

The properties of the content control.

documentStyles

StyleCollection

The styles defined in the document.

Properties

Alias

Gets or sets the alias of the control.

Declaration

cs-api-definition
public string Alias { get; set; }

Property Value

string

AvailableStyles

Gets the available styles inside the document.

Declaration

cs-api-definition
public RadObservableCollection<StyleDefinition> AvailableStyles { get; }

Property Value

RadObservableCollection<StyleDefinition>

HasSelectedStyle

Gets or sets whether there is a selected style applied to the contents of the control.

Declaration

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

Property Value

bool

IsContentLocked

Gets or sets the locked state of the content of the control.

Declaration

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

Property Value

bool

IsLocked

Gets or sets locked state of the control.

Declaration

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

Property Value

bool

IsTemporary

Gets or sets whether the control should be deleted after the content is edited.

Declaration

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

Property Value

bool

OutlineAppearance

Gets or sets the appearance of the control.

Declaration

cs-api-definition
public OutlineAppearance? OutlineAppearance { get; set; }

Property Value

OutlineAppearance?

OutlineAppearances

Gets the available appearances.

Declaration

cs-api-definition
public IEnumerable<EnumMemberViewModel> OutlineAppearances { get; }

Property Value

IEnumerable<EnumMemberViewModel>

OutlineColor

Gets or sets the color of the control.

Declaration

cs-api-definition
public Color? OutlineColor { get; set; }

Property Value

Color?

SelectedStyleName

Gets or sets the selected style name.

Declaration

cs-api-definition
public string SelectedStyleName { get; set; }

Property Value

string

Tag

Gets or sets the tag of the control.

Declaration

cs-api-definition
public string Tag { get; set; }

Property Value

string

Methods

BeginEdit()

Starts the editing cycle.

Declaration

cs-api-definition
public void BeginEdit()

Implements IEditableObject.BeginEdit()

CancelEdit()

Finishes the editing cycle and reverts all the changes.

Declaration

cs-api-definition
public void CancelEdit()

Implements IEditableObject.CancelEdit()

EndEdit()

Finishes the editing cycle and retains all the changes.

Declaration

cs-api-definition
public void EndEdit()

Implements IEditableObject.EndEdit()