Spread Windows Forms 7.0 Product Documentation
Saving and Loading Map Files
See Also Support Options
Spread Windows Forms 7.0 Product Documentation > Developer's Guide > Managing Keyboard Interaction > Saving and Loading Map Files

Glossary Item Box

You can load or save the input maps to an XML file. Use the SaveXmlInputMapFile method to save to a file and the LoadXmlInputMapFile to load from an input map file.

Spread installs a default Excel compatibility XML file to the input map folder.

Using Code

  1. Create an input map.
  2. Save the input map to a file.


This example saves an input map to an XML file.

C# Copy Code

FarPoint.Win.Spread.SpreadView sv = fpSpread1.GetRootWorkbook();
FarPoint.Win.Spread.InputMap im = new FarPoint.Win.Spread.InputMap();
im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);
sv.SetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused, im);
fpSpread1.SaveXmlInputMapFile("file.xml", FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused, FarPoint.Win.Spread.OperationMode.Normal);

VB Copy Code

Dim sv As FarPoint.Win.Spread.SpreadView = FpSpread1.GetRootWorkbook
Dim im As New FarPoint.Win.Spread.InputMap()
im.Put(New FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow)
sv.SetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused, im)
FpSpread1.SaveXmlInputMapFile("file.xml", FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused,


Using the Spread Designer

  1. Select the Settings menu and then select the Input Map icon located under the Other Settings section.
  2. From the Select InputMap section, select the mode options.
  3. Specify the shortcut key and action.
  4. Click Add to add the new input map.
  5. Use the Save button to save the input map to a file. Use the Load Input Maps button to load an input map file instead.
  6. Select OK to apply the input map.
  7. From the File menu choose Apply and Exit to apply your changes to the component and exit Spread Designer.

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.