Class
PasteOptionsViewModel

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

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class PasteOptionsViewModel : INotifyPropertyChanged

Inheritance: objectPasteOptionsViewModel

Implements: INotifyPropertyChanged

Constructors

PasteOptionsViewModel(IEnumerable<PasteOption>, PasteOption?)

Initializes a new instance of the PasteOptionsViewModel class.

Declaration

cs-api-definition
public PasteOptionsViewModel(IEnumerable<PasteOption> availablePasteOptions, PasteOption? selectedPasteOption)

Parameters

availablePasteOptions

IEnumerable<PasteOption>

The available paste options.

selectedPasteOption

PasteOption?

The selected paste option.

Properties

AvailablePasteOptions

Gets a list of the available paste options.

Declaration

cs-api-definition
public IEnumerable AvailablePasteOptions { get; }

Property Value

IEnumerable

SelectedPasteOption

Gets or sets the selected PasteOption.

Declaration

cs-api-definition
public PasteOption? SelectedPasteOption { get; set; }

Property Value

PasteOption?

Methods

OnPropertyChanged(string)

Raises the PropertyChanged event.

Declaration

cs-api-definition
protected void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

The name of the affected property

Events

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged