Freigeben über


InkOverlay.SetAllTabletsMode Method

InkOverlay.SetAllTabletsMode Method

Sets the InkOverlay object to collect ink from any tablet attached to the Tablet PC.

Definition

Visual Basic .NET Public Sub SetAllTabletsMode()
C# public void SetAllTabletsMode();
Managed C++ public: void SetAllTabletsMode();

Remarks

This is the default mode for an InkOverlay object. To allow the InkOverlay object to collect ink from only one tablet, call the SetSingleTabletIntegratedMode method.

In addition to the pen, the mouse is used for input.

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

When an InkOverlay object switches from collecting ink by using a single tablet to collecting ink by using all tablets, the Cursors property is set to the empty collection.

Examples

[C#]

This C# example calls SetAllTabletsMode on a new InkOverlay object, theInkOverlay.

using Microsoft.Ink;
// . . .
Tablets theTablets = new Tablets();
InkOverlay theInkOverlay = new InkOverlay();
theInkOverlay.SetAllTabletsMode();

[VB.NET]

This Microsoft® Visual Basic® .NET example calls SetAllTabletsMode on a new InkOverlay object, theInkOverlay.

Imports Microsoft.Ink
' . . .
Dim theTablets As New Tablets()
Dim theInkOverlay As New InkOverlay()
theInkOverlay.SetAllTabletsMode()

See Also