Spread Windows Forms 6.0 Product Documentation
ClipboardCutShape Field
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadActions Class : ClipboardCutShape Field


Glossary Item Box

Cuts the active shape to the Clipboard.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly ClipboardCutShape As Object
Visual Basic (Usage)Copy Code
Dim value As Object
 
value = SpreadActions.ClipboardCutShape
C# 
public static readonly object ClipboardCutShape

Example

This example sets up Clipboard operations for copying, cutting, pasting shapes using the C, X, and V keys respectively.
C#Copy Code
FarPoint.Win.Spread.InputMap imcopy;
imcopy = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
imcopy.Put(new FarPoint.Win.Spread.Keystroke(Keys.C, Keys.Control), FarPoint.Win.Spread.SpreadActions.ClipboardCopyShape);


FarPoint.Win.Spread.InputMap imcut;
imcut = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
imcut.Put(new FarPoint.Win.Spread.Keystroke(Keys.X, Keys.Control), FarPoint.Win.Spread.SpreadActions.ClipboardCutShape);

FarPoint.Win.Spread.InputMap impaste;
impaste = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
impaste.Put(new FarPoint.Win.Spread.Keystroke(Keys.V, Keys.Control), FarPoint.Win.Spread.SpreadActions.ClipboardPasteShape);
Visual BasicCopy Code
Dim imcopy As FarPoint.Win.Spread.InputMap
imcopy = FpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused)
imcopy.Put(New FarPoint.Win.Spread.Keystroke(Keys.C, Keys.Control), FarPoint.Win.Spread.SpreadActions.ClipboardCopyShape)

Dim imcut As FarPoint.Win.Spread.InputMap
imcut = FpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused)
imcut.Put(New FarPoint.Win.Spread.Keystroke(Keys.X, Keys.Control), FarPoint.Win.Spread.SpreadActions.ClipboardCutShape)

Dim impaste As FarPoint.Win.Spread.InputMap
impaste = FpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused)
impaste.Put(New FarPoint.Win.Spread.Keystroke(Keys.V, Keys.Control), FarPoint.Win.Spread.SpreadActions.ClipboardPasteShape)

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.