Język

DataGridColumn.OnPastingCellClipboardContent(Object, Object) Metoda

Definicja

PastingCellClipboardContent Wywołuje zdarzenie.

public:
 virtual void OnPastingCellClipboardContent(System::Object ^ item, System::Object ^ cellContent);
public virtual void OnPastingCellClipboardContent(object item, object cellContent);
abstract member OnPastingCellClipboardContent : obj * obj -> unit
override this.OnPastingCellClipboardContent : obj * obj -> unit
Public Overridable Sub OnPastingCellClipboardContent (item As Object, cellContent As Object)

Parametry

item
Object

Kontekst danych dla wybranego elementu.

cellContent
Object

Zawartość do wklejania do komórki.

Uwagi

Tej metody można użyć jako pomocnika, jeśli udostępnisz niestandardową implementację wklejania dla elementu DataGrid. Zawartość komórki jest przechowywana w item obiekcie .

Ta metoda zgłasza PastingCellClipboardContent zdarzenie. Zdarzenie można obsłużyć, aby zmodyfikować zawartość komórki przed wklejeniem go do komórki. Możesz ustawić cellContent wartość na , null aby anulować akcję wklejania.

Dotyczy

Zobacz też