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


Glossary Item Box

Occurs when the user pastes from the clipboard.

Syntax

Visual Basic (Declaration) 
Public Event ClipboardPasted As ClipboardPastedEventHandler
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim handler As ClipboardPastedEventHandler
 
AddHandler instance.ClipboardPasted, handler
C# 
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
CellRange Gets the CellRange.
DataObject Gets the IDataObject
PasteOption Gets the ClipboardPasteOptions
SheetView Gets the SheetView.

Example

This example uses the ClipboardPasted event.
C#Copy Code
private void fpSpread1_ClipboardPasted(object sender, EventArgs e)
        {
            listBox1.Items.Add("ClipboardPasted Event");
        }
Visual BasicCopy Code
Private Sub FpSpread1_ClipboardPasted(ByVal sender As Object, ByVal e As System.EventArgs) Handles FpSpread1.ClipboardPasted
        ListBox1.Items.Add("ClipboardPasted Event")
End Sub

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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