DataGridColumn.OnCopyingCellClipboardContent(Object) DataGridColumn.OnCopyingCellClipboardContent(Object) DataGridColumn.OnCopyingCellClipboardContent(Object) DataGridColumn.OnCopyingCellClipboardContent(Object) Method

定義

引發 CopyingCellClipboardContent 事件。Raises the CopyingCellClipboardContent event.

public:
 virtual System::Object ^ OnCopyingCellClipboardContent(System::Object ^ item);
public virtual object OnCopyingCellClipboardContent (object item);
abstract member OnCopyingCellClipboardContent : obj -> obj
override this.OnCopyingCellClipboardContent : obj -> obj
Public Overridable Function OnCopyingCellClipboardContent (item As Object) As Object

參數

item
Object Object Object Object

所選取項目的資料內容。The data context for the selected element.

傳回

表示儲存格內容的物件。An object that represents the content of the cell.

備註

針對每個選取的儲存格,會呼叫這個方法來抓取預設的資料格內容。This method is called for each selected cell to retrieve the default cell content. 然後,它會CopyingCellClipboardContent引發事件。It then raises the CopyingCellClipboardContent event. 在傳回資料格內容之前,您可以處理該事件來修改它。You can handle the event to modify the cell content before it is returned.

適用於

另請參閱