Поделиться через


InkPicture.SetAllTabletsMode - метод (Boolean)

Обновлен: Ноябрь 2007

Sets the InkPicture control to collect ink from any tablet attached to the Tablet PC, and optionally the mouse.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Sub SetAllTabletsMode ( _
    useMouseForInput As Boolean _
)
'Применение
Dim instance As InkPicture
Dim useMouseForInput As Boolean

instance.SetAllTabletsMode(useMouseForInput)
public void SetAllTabletsMode(
    bool useMouseForInput
)
public:
void SetAllTabletsMode(
    bool useMouseForInput
)
public void SetAllTabletsMode(
    boolean useMouseForInput
)
public function SetAllTabletsMode(
    useMouseForInput : boolean
)

Параметры

  • useMouseForInput
    Тип: System.Boolean
    The Boolean value that indicates whether to use the mouse as an input device.
    true if in addition to the pen, the mouse is used for input.
    false if the mouse cannot be used for input.

Заметки

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

ms569512.alert_note(ru-ru,VS.90).gifПримечание.

The InkPicture control must be disabled before calling this method. To disable the InkPicture control, set the InkEnabled property to false. After calling the SetAllTabletsMode method, enable the InkPicture control by setting the InkEnabled property to true.

When an InkPicture control 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.

ms569512.alert_note(ru-ru,VS.90).gifПримечание.

If the SetAllTabletsMode method is called with the useMouseForInput parameter set to true (or no parameters), then the mouse is used as an input device. If the SetAllTabletsMode method is then called with the useMouseForInput parameter set to false, the mouse is not removed from the Cursors property.

Примеры

This C# example calls SetAllTabletsMode on a new InkPicture control, theInkCollector, with the useMouseForInput parameter set to false if more than one tablet is available.

[C#]

using Microsoft.Ink;
// . . .
Tablets theTablets = new Tablets();
InkPicture theInkPicture = new InkPicture();
if (theTablets.Count > 1)
    theInkPicture.SetAllTabletsMode(false);
else
    theInkPicture.SetAllTabletsMode();

This Microsoft® Visual Basic® .NET example calls SetAllTabletsMode on a new InkPicture control, theInkCollector, with the useMouseForInput parameter set to false if more than one tablet is available.

[Visual Basic]

Imports Microsoft.Ink
' . . .
Dim theTablets As New Tablets()
Dim theInkPicture As New InkPicture()
If theTablets.Count > 1 Then
    theInkPicture.SetAllTabletsMode(False)
Else
    theInkPicture.SetAllTabletsMode()
End If

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

InkPicture Класс

InkPicture - члены

SetAllTabletsMode - перегрузка

Microsoft.Ink - пространство имен

Tablets

InkPicture.InkEnabled

InkPicture.SetSingleTabletIntegratedMode