Spread Windows Forms 12.0 Product Documentation
Behavior Property (ClipboardPastingEventArgs)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ClipboardPastingEventArgs Class : Behavior Property
Gets the behavior.
Syntax
'Declaration
 
Public ReadOnly Property Behavior As ClipboardBehavior
'Usage
 
Dim instance As ClipboardPastingEventArgs
Dim value As ClipboardBehavior
 
value = instance.Behavior
public ClipboardBehavior Behavior {get;}
Example
Add a list box to the form and paste a value to a cell to return the value of the Behavior property.
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());
}
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
See Also

Reference

ClipboardPastingEventArgs Class
ClipboardPastingEventArgs Members