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

Contains information about the current paste operation. Suitable for data binding.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class PasteOptionsViewModel : INotifyPropertyChanged

Inheritance: objectPasteOptionsViewModel

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the PasteOptionsViewModel class.

C#
public PasteOptionsViewModel(IEnumerable<PasteOption> availablePasteOptions, PasteOption? selectedPasteOption)
Parameters:availablePasteOptionsIEnumerable<PasteOption>

The available paste options.

selectedPasteOptionPasteOption?

The selected paste option.

Properties

Gets a list of the available paste options.

C#
public IEnumerable AvailablePasteOptions { get; }

Gets or sets the selected PasteOption.

C#
public PasteOption? SelectedPasteOption { get; set; }

Methods

Raises the PropertyChanged event.

C#
protected void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

The name of the affected property

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged