Spread Windows Forms 6.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 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.