InkPicture.SetAllTabletsMode 方法 (Boolean)

设置 InkPicture 控件以便从附加到 Tablet PC 的任何 Tablet(和可选的鼠标)收集墨迹

命名空间:  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
    指示是否将鼠标用作输入设备的布尔值。
    如果除了笔以外,也可以使用鼠标进行输入,则为 true。
    如果不能使用鼠标进行输入,则为 false。

备注

这是 InkPicture 控件的默认模式。若要使 InkPicture 控件仅从一个 Tablet 收集墨迹,请调用 SetSingleTabletIntegratedMode 方法。

备注

在调用此方法之前,必须禁用 InkPicture 控件。若要禁用 InkPicture 控件,请将 InkEnabled 属性设置为 false。在调用 SetAllTabletsMode 方法之后,请通过将 InkEnabled 属性设置为 true 来启用 InkPicture 控件。

InkPicture 控件从使用单个 Tablet 收集墨迹切换到使用所有 Tablet 收集墨迹时,Cursors 属性将设置为空集合。

备注

如果在调用 SetAllTabletsMode 方法时 useMouseForInput 参数设置为 true(或没有参数),则鼠标将用作输入设备。如果随后调用 SetAllTabletsMode 方法时 useMouseForInput 参数设置为 false,则不从 Cursors 属性中移除鼠标。

示例

在此 C# 示例中,如果多个 Tablet 可用,则在对新 InkPicture 控件 theInkCollector 调用 SetAllTabletsMode 时将 useMouseForInput 参数设置为 false。

[C#]

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

在此 Microsoft(R) Visual Basic(R) .NET 示例中,如果多个 Tablet 可用,则在对新 InkPicture 控件 theInkCollector 调用 SetAllTabletsMode 时将 useMouseForInput 参数设置为 false。

[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