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

Represents the GeneralSectionViewModel class.

Definition

Constructors

Constructs the GeneralSectionViewModel.

C#
public GeneralSectionViewModel(SdtProperties properties, StyleCollection documentStyles)
Parameters:propertiesSdtProperties

The properties of the content control.

documentStylesStyleCollection

The styles defined in the document.

Properties

Gets or sets the alias of the control.

C#
public string Alias { get; set; }

Gets the available styles inside the document.

C#
public RadObservableCollection<StyleDefinition> AvailableStyles { get; }

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

C#
public bool HasSelectedStyle { get; set; }

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

C#
public bool IsContentLocked { get; set; }

Gets or sets locked state of the control.

C#
public bool IsLocked { get; set; }

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

C#
public bool IsTemporary { get; set; }

Gets or sets the appearance of the control.

C#
public OutlineAppearance? OutlineAppearance { get; set; }

Gets the available appearances.

C#
public IEnumerable<EnumMemberViewModel> OutlineAppearances { get; }

Gets or sets the color of the control.

C#
public Color? OutlineColor { get; set; }

Gets or sets the selected style name.

C#
public string SelectedStyleName { get; set; }

Gets or sets the tag of the control.

C#
public string Tag { get; set; }

Methods

Starts the editing cycle.

C#
public void BeginEdit()

Implements: IEditableObject.BeginEdit()

Finishes the editing cycle and reverts all the changes.

C#
public void CancelEdit()

Implements: IEditableObject.CancelEdit()

Finishes the editing cycle and retains all the changes.

C#
public void EndEdit()

Implements: IEditableObject.EndEdit()