PenInputPanel.AttachedEditWindow 属性

已否决。获取或设置 PenInputPanel 对象附加到的窗口句柄。PenInputPanel 已由 Microsoft.Ink.TextInput 替换。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink(在 Microsoft.Ink.dll 中)

语法

声明
Public Property AttachedEditWindow As IntPtr
用法
Dim instance As PenInputPanel
Dim value As IntPtr

value = instance.AttachedEditWindow

instance.AttachedEditWindow = value
public IntPtr AttachedEditWindow { get; set; }
public:
property IntPtr AttachedEditWindow {
    IntPtr get ();
    void set (IntPtr value);
}
/** @property */
public IntPtr get_AttachedEditWindow()
/** @property */
public  void set_AttachedEditWindow(IntPtr value)
public function get AttachedEditWindow () : IntPtr
public function set AttachedEditWindow (value : IntPtr)

属性值

类型:System.IntPtr
PenInputPanel 对象附加到的窗口句柄。

备注

有时,PenInputPanel 对象附加到的对象或控件可能被移动到具有新窗口句柄的窗口。例如,在更新应用程序时可能会更改对象或控件附加到的窗口。在这种情况下,如果该 PenInputPanel 对象实例的 AttachedEditControl 属性设置为对象或控件,则当附加控件的窗口句柄更改时,将自动更新 AttachedEditWindow 属性。如果不设置 AttachedEditControl 属性,则当附加对象或控件的窗口句柄更改时,必须更新 PenInputPanel 对象的窗口句柄。

AttachedEditControl 和 AttachedEditWindow 是独立属性。设置一个属性不一定会更新另一个属性。请使用最初用于将 PenInputPanel 对象附加到控件或窗口的属性。

ms582240.alert_security(zh-cn,VS.90).gif安全说明:

如果在部分信任环境下使用,则除了 PenInputPanel 所需的权限以外,该属性还需要 SecurityPermissionFlag.AllFlags 权限。有关更多信息,请参见Security and Trust

示例

此 C# 示例创建 PenInputPanel 对象 thePenInputPanel,并通过设置 AttachedEditWindow 属性,将它附加到 InkEdit 控件 theInkEdit。

[C#]

// Declare and create a PenInputPanel
PenInputPanel thePenInputPanel = new PenInputPanel();

// Attach the PenInputPanel to the window handle of an InkEdit control
thePenInputPanel.AttachedEditWindow = theInkEdit.Handle;

此 Microsoft(R) Visual Basic(R) .NET 示例创建 PenInputPanel 对象 thePenInputPanel,并通过设置 AttachedEditWindow 属性,将它附加到 InkEdit 控件 theInkEdit。

[Visual Basic]

' Declare a new PenInputPanel object
Dim thePenInputPanel As PenInputPanel

' Create the PenInputPanel
Set thePenInputPanel = New PenInputPanel

' Attach the PenInputPanel to an InkEdit control
thePenInputPanel.AttachedEditWindow = theInkEdit.hWnd

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

PenInputPanel 类

PenInputPanel 成员

Microsoft.Ink 命名空间

PenInputPanel.AttachedEditControl