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


PenInputPanel - конструктор (IntPtr)

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

Deprecated. Initializes a new instance of the PenInputPanel class and attaches it to a window handle. PenInputPanel has been replaced by Microsoft.Ink.TextInput.

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

Синтаксис

'Декларация
Public Sub New ( _
    attachHandle As IntPtr _
)
'Применение
Dim attachHandle As IntPtr

Dim instance As New PenInputPanel(attachHandle)
public PenInputPanel(
    IntPtr attachHandle
)
public:
PenInputPanel(
    IntPtr attachHandle
)
public PenInputPanel(
    IntPtr attachHandle
)
public function PenInputPanel(
    attachHandle : IntPtr
)

Параметры

Заметки

This constructor only creates a PenInputPanel object. It does not associate the object with a control or window. Use the AttachedEditControl property to associate the PenInputPanel with a control. Use the AttachedEditWindow property to associate the PenInputPanel with a window.

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

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

Примеры

This C# example declares and creates a PenInputPanel object, thePenInPutPanel, associating it with the window handle of a TextBox control on the form.

[C#]

// Declare the PenInputPanel variable.
PenInputPanel thePenInputPanel;

// Create a PenInputPanel and attach it
// to the handle of a textbox control.
thePenInputPanel = new PenInputPanel(theTextBox.Handle);

This Microsoft® Visual Basic® .NET example declares and creates a PenInputPanel object, thePenInPutPanel, associating it with the window handle of a TextBox control on the form.

[Visual Basic]

' Create a PenInputPanel object and
' attach it to a TextBox control.
Dim thePenInputPanel As New PenInputPanel(theTextBox.Handle)

Платформы

Windows Vista

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

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

.NET Framework

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

См. также

Ссылки

PenInputPanel Класс

PenInputPanel - члены

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

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

PenInputPanel

PenInputPanel.AttachedEditControl