Spread Windows Forms 11.0 Product Documentation
ClipboardPasted Event
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : ClipboardPasted Event
Occurs when the user pastes from the clipboard.
Syntax
'Declaration
 
Public Event ClipboardPasted As ClipboardPastedEventHandler
'Usage
 
Dim instance As FpSpread
Dim handler As ClipboardPastedEventHandler
 
AddHandler instance.ClipboardPasted, handler
public event ClipboardPastedEventHandler ClipboardPasted
Event Data

The event handler receives an argument of type ClipboardPastedEventArgs containing data related to this event. The following ClipboardPastedEventArgs properties provide information specific to this event.

PropertyDescription
Gets the CellRange.  
Gets the IDataObject  
Gets the ClipboardPasteOptions  
Gets the SheetView.  
Example
This example uses the ClipboardPasted event.
private void fpSpread1_ClipboardPasted(object sender, EventArgs e)
        {
            listBox1.Items.Add("ClipboardPasted Event");
        }
Private Sub FpSpread1_ClipboardPasted(ByVal sender As Object, ByVal e As System.EventArgs) Handles FpSpread1.ClipboardPasted
        ListBox1.Items.Add("ClipboardPasted Event")
End Sub
See Also