Spread Windows Forms 6.0 Product Documentation
KeystrokeFactory Class
Members  See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace : KeystrokeFactory Class


Glossary Item Box

Represents a means of creating Keystroke objects in environments that do not support parameterized constructors.

Object Model

KeystrokeFactory Class

Syntax

Visual Basic (Declaration) 
Public Class KeystrokeFactory 
Visual Basic (Usage)Copy Code
Dim instance As KeystrokeFactory
C# 
public class KeystrokeFactory 

Remarks

Keystroke objects are non-mutable. Thus, their property settings have to be passed into their constructor. But there are some non-mainstream languages that do not support constructors with parameters. For these languages, we provide this KeystrokeFactory class, which has CreateKeystroke methods that internally call the Keystroke constructors. This gives the non-mainstream languages an indirect means of calling the Keystroke constructors.

The mainstream languages (for example C# and Visual Basic .NET) can call the constructor directly:

  KeyStroke ks = new KeyStroke(Keys.PageUp, Keys.None);

The non-mainstream languages can call the factory method:

  Keystroke ks = KeystrokeFactory.CreateKeyStroke(Keys.PageUp, Keys.None);

This class is for anyone using a non-mainstream language for their application development.

Inheritance Hierarchy

System.Object
   FarPoint.Win.Spread.KeystrokeFactory

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.