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


PenInputPanel.AttachedEditWindow - свойство

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

Deprecated. Gets or sets the window handle that the PenInputPanel object is attached to. PenInputPanel has been replaced by 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
The window handle that the PenInputPanel object is attached to.

Заметки

The object or control that a PenInputPanel object is attached to may, on occasion, be moved to a window with a new window handle. For example, you may update an application and change the window that an object or control is attached to. In cases such as this, if the AttachedEditControl property for that instance of the PenInputPanel object is set to the object or control, then the AttachedEditWindow property is updated automatically when the window handle of the attached control changes. If the AttachedEditControl property is not set, then you must update the window handle for the PenInputPanel object when the window handle for the attached object or control changes.

AttachedEditControl and AttachedEditWindow are independent properties. Setting one does not necessarily update the other. Use the property that you originally used to attach the PenInputPanel object to a control or window.

ms582240.alert_security(ru-ru,VS.90).gifПримечание о безопасности.

If using under partial trust, this property requires SecurityPermissionFlag.AllFlags permission, in addition to the permissions required by PenInputPanel. See Security and Trust for more information.

Примеры

This C# example creates a PenInputPanel object, thePenInputPanel, and attaches it to an InkEdit control, theInkEdit, by setting the AttachedEditWindow property.

[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;

This Microsoft® Visual Basic® .NET example creates a PenInputPanel object, thePenInputPanel, and attaches it to an InkEdit control, theInkEdit, by setting the AttachedEditWindow property.

[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