Spread Windows Forms 12.0 Product Documentation
ClipboardPasting Event

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : ClipboardPasting Event
Occurs when the user pastes from the clipboard.
Public Event ClipboardPasting As ClipboardPastingEventHandler
Dim instance As FpSpread
Dim handler As ClipboardPastingEventHandler
AddHandler instance.ClipboardPasting, handler
public event ClipboardPastingEventHandler ClipboardPasting
Event Data

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

Gets the behavior.  
Gets or sets whether the paste was handled or the default paste action should be performed.  

This event is raised by the OnClipboardPasting method when the user pastes from the clipboard.

For more details on the individual event arguments, refer to ClipboardPastingEventArgs members.

This example cancels any Clipboard action.
private void fpSpread1_ClipboardPasting(object sender, FarPoint.Win.Spread.ClipboardPastingEventArgs e) 
    e.Handled = true;  
Private Sub FpSpread1_ClipboardPasting(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ClipboardPastingEventArgs)
Handles FpSpread1.ClipboardPasting
    e.Handled = True 
End Sub 
See Also