InkOverlay (Constructor) (Control, Tablet)
Actualización: noviembre 2007
Inicializa una nueva instancia de la clase InkOverlay y la asocia a un control especificado en un objeto Tablet especificado.
Espacio de nombres: Microsoft.Ink
Ensamblado: Microsoft.Ink (en Microsoft.Ink.dll)
Sintaxis
'Declaración
Public Sub New ( _
attachedControl As Control, _
tablet As Tablet _
)
'Uso
Dim attachedControl As Control
Dim tablet As Tablet
Dim instance As New InkOverlay(attachedControl, _
tablet)
public InkOverlay(
Control attachedControl,
Tablet tablet
)
public:
InkOverlay(
Control^ attachedControl,
Tablet^ tablet
)
public InkOverlay(
Control attachedControl,
Tablet tablet
)
public function InkOverlay(
attachedControl : Control,
tablet : Tablet
)
Parámetros
- attachedControl
Tipo: System.Windows.Forms.Control
Control al que está asociado el objeto InkOverlay.
- tablet
Tipo: Microsoft.Ink.Tablet
El objeto Tablet al que está asociada la nueva ventana del objeto InkOverlay.
Ejemplos
En este ejemplo de C# se inicializa una nueva instancia del objeto InkOverlay, theInkOverlay, se asocia al identificador de ventana del formulario y el objeto Tablet predeterminado y, a continuación, se habilita.
using System;
using System.Drawing;
using System.Windows.Forms;
using Microsoft.Ink;
class MinimumInkApp : System.Windows.Forms.Form
{
InkOverlay theInkOverlay;
public MinimumInkApp()
{
// Initialize the form.
this.Text = "Minimum Ink Application";
// Create and enable theInkOverlay.
Tablets allTablets = new Tablets();
theInkOverlay = new InkOverlay(this, allTablets.DefaultTablet);
theInkOverlay.Enabled = true;
}
public static void Main()
{
Application.Run(new MinimumInkApp());
}
}
En este ejemplo de Microsoft Visual Basic .NET se inicializa una nueva instancia del objeto InkOverlay, theInkOverlay, se asocia al identificador de ventana del formulario y el objeto Tablet predeterminado y, a continuación, se habilita.
Imports System.Windows.Forms
Imports Microsoft.Ink
Public Class MinimumInkApp
Inherits System.Windows.Forms.Form
Dim theInkOverlay As InkOverlay
Public Sub New()
MyBase.New()
'Initialize the form.
Me.Text = "Minimum Ink Application"
'Create and enable theInkOverlay.
Dim allTablets As New Tablets()
theInkOverlay = New InkOverlay(Me, allTablets.DefaultTablet)
theInkOverlay.Enabled = True
End Sub
Public Shared Sub Main()
Application.Run(New MinimumInkApp())
End Sub
End Class
Plataformas
Windows Vista
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
Información de versión
.NET Framework
Compatible con: 3.0