Freigeben über


InkCollectorCursorInRangeEventArgs.InkCollectorCursorInRangeEventArgs Constructor

InkCollectorCursorInRangeEventArgs.InkCollectorCursorInRangeEventArgs Constructor

Initializes a new instance of the InkCollectorCursorInRangeEventArgs class.

Definition

Visual Basic .NET Public Sub InkCollectorCursorInRangeEventArgs( _
ByVal cursor As Cursor, _
ByVal newCursor As Boolean, _
ByVal buttonStates() As CursorButtonState _
)
C# public InkCollectorCursorInRangeEventArgs(
Cursor cursor,
bool newCursor,
CursorButtonState[] buttonStates
);
Managed C++ public: InkCollectorCursorInRangeEventArgs(
Cursor *cursor,
bool *newCursor,
CursorButtonState *buttonStates __gc[]
);

Parameters

> > >
cursor Microsoft.Ink.Cursor. The Cursor object that triggers the CursorInRange event.
newCursor System.Boolean. Set to true if this is the first time this InkCollector object has seen this Cursor object; otherwise false.
buttonStates Microsoft.Ink.CursorButtonState[]. The values of the State properties for the CursorButtons collection associated with the Cursor object, taken at the time the CursorInRange event occurs.

Unavailable0 Shows that the cursor button is unavailable. A cursor button may become unavailable, for example, when a cursor leaves the range of the Tablet PC.
Up1 Shows that the cursor button is up. A button on a pen tip is up when the pen is not pressed against the digitizer. A button on a pen barrel is up when the button is not depressed.
Down2 Shows that the cursor button is down. A button on a pen tip is down when the user lowers the pen to the digitizer and draws a stroke. For a button on a barrel, the button is down when the button is depressed.

Remarks

cursor of type Cursor is the cursor used to collect the stroke. newCursor of type Boolean Leave Site specifies if this is the first time this InkCollector has seen this cursor. buttonStates of type CursorButtonState specifies the state of the cursor's buttons.

See Also