Spread Windows Forms 7.0 Product Documentation
Remove Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ActionMap Class : Remove Method


key
Specified keyboard key

Glossary Item Box

Removes the binding to an action for the specified key.

Syntax

Visual Basic (Declaration) 
Public Sub Remove( _
   ByVal key As Object _
) 
Visual Basic (Usage)Copy Code
Dim instance As ActionMap
Dim key As Object
 
instance.Remove(key)
C# 
public void Remove( 
   object key
)

Parameters

key
Specified keyboard key

Example

This example removes the keys for the map.
C#Copy Code
FarPoint.Win.Spread.ActionMap map;
map = fpSpread1.GetActionMap();
object[] keys = map.AllKeys;
foreach (object key in keys)
{
       map.Remove(key);
}
listBox1.Items.Add(key);
Visual BasicCopy Code
Dim map As FarPoint.Win.Spread.ActionMap
map = FpSpread1.GetActionMap()
Dim keys As Object() = map.AllKeys()
Dim key As Object
For Each key In keys
       map.Remove(key)
Next
ListBox1.Items.Add(key)

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.