Bagikan melalui


InkCollector.SetSingleTabletIntegratedMode Method

InkCollector.SetSingleTabletIntegratedMode Method

Sets the InkCollector object to collect ink from only one tablet attached to the Tablet PC. Ink from other tablets is ignored by the InkCollector object.

Definition

Visual Basic .NET Public Sub SetSingleTabletIntegratedMode( _
ByVal tablet As Tablet _
)
C# public void SetSingleTabletIntegratedMode(
Tablet tablet
);
Managed C++ public: void SetSingleTabletIntegratedMode(
Tablet *tablet
);

Parameters

tablet Microsoft.Ink.Tablet. The Tablet object on which ink is collected.

Exceptions

COMException Leave Site:
ObjectDisposedException Leave Site: The InkCollector object is disposed.

Remarks

To allow the InkCollector object to collect ink from any tablet attached to the Tablet PC, call the SetAllTabletsMode method.

Note: The InkCollector object must be disabled before calling this method. To disable the InkCollector object, set the Enabled property to false. After calling the SetAllTabletsMode method, enable the InkCollector object by setting the Enabled property to true.

When this method is called, the Cursors property is set to the empty collection.

Examples

[C#]

This C# example calls SetSingleTabletIntegratedMode on a new InkCollector object, theInkCollector, with the input set to use only the default Tablet object of a Tablets collection, theTablets.

using Microsoft.Ink;
// . . .
InkCollector theInkCollector = new InkCollector();
Tablets theTablets = new Tablets();
theInkCollector.SetSingleTabletIntegratedMode(theTablets.DefaultTablet);
                

[VB.NET]

This Microsoft® Visual Basic® .NET example calls SetSingleTabletIntegratedMode on a new InkCollector object, theInkCollector, with the input set to use only the default Tablet object of a Tablets collection, theTablets.

Imports Microsoft.Ink
' . . .
Dim theInkCollector As New InkCollector()
Dim theTablets As New Tablets()
theInkCollector.SetSingleTabletIntegratedMode(theTablets.DefaultTablet)
                

See Also