The InkControl and InkControl2 Classes
These two classes provide a quick and dirty user interface to most of the InkOverlay class s functionality and are mainly useful for exploring API behavior. Derived from the Control class, the InkControl and InkControl2 classes require no host window to use them. They are almost identical to one another, with one subtle difference: the InkControl class allows changing ink color only using the .NET Framework s ColorDialog class. The InkControl2 class provides more control over ink formatting using the utility library s FormatInkDlg class.
NOTE
The two classes are provided for reader reference the book starts out using InkControl, but once the appropriate material is covered we switch over to the InkControl2 class. The use of these controls in production-level applications isn t recommended.
InkControl
public InkControl()
Class constructor.
InkControl2
public InkControl2()
Class constructor.
InkOverlay
public InkOverlay InkOverlay
This property returns the InkOverlay instance the control is using. There is no restriction on altering any of the instance s properties, calling its methods, or responding to its events.
InkInputPanel
public InkInputPanel InkInputPanel
This property returns the InkInputPanel instance the control is using.