Spread Windows Forms 6.0 Product Documentation
ClipboardPasting Event
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : ClipboardPasting Event


Glossary Item Box

Occurs when the user pastes from the clipboard.

Syntax

Visual Basic (Declaration) 
Public Event ClipboardPasting As ClipboardPastingEventHandler
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim handler As ClipboardPastingEventHandler
 
AddHandler instance.ClipboardPasting, handler
C# 
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.

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

Remarks

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.

Example

This example cancels any Clipboard action.
C#Copy Code
private void fpSpread1_ClipboardPasting(object sender, FarPoint.Win.Spread.ClipboardPastingEventArgs e) 
{ 
    e.Handled = true;  
} 
Visual BasicCopy Code
Private Sub FpSpread1_ClipboardPasting(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ClipboardPastingEventArgs)
Handles FpSpread1.ClipboardPasting
    e.Handled = True 
End Sub 

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.