Spread Windows Forms 7.0 Product Documentation
PasteOption Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ClipboardPastedEventArgs Class : PasteOption Property


Glossary Item Box

Gets the ClipboardPasteOptions

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property PasteOption As ClipboardPasteOptions
Visual Basic (Usage)Copy Code
Dim instance As ClipboardPastedEventArgs
Dim value As ClipboardPasteOptions
 
value = instance.PasteOption
C# 
public ClipboardPasteOptions PasteOption {get;}

Example

Add a list box to the form and paste a value to a cell to return the value of the PasteOption property.
C#Copy Code
private void fpSpread1_ClipboardPasted(object sender, FarPoint.Win.Spread.ClipboardPastedEventArgs e)
{
listBox1.Items.Add(e.PasteOption.ToString());
}

private void fpSpread1_ClipboardPasting(object sender, FarPoint.Win.Spread.ClipboardPastingEventArgs e)
{
listBox1.Items.Add(e.Behavior.ToString());
}
VB.NETCopy Code
Private Sub FpSpread1_ClipboardPasted(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ClipboardPastedEventArgs) Handles FpSpread1.ClipboardPasted
ListBox1.Items.Add(e.PasteOption.ToString())
End Sub

Private Sub FpSpread1_ClipboardPasting(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ClipboardPastingEventArgs) Handles FpSpread1.ClipboardPasting
ListBox1.Items.Add(e.Behavior.ToString())
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.