Compartir a través de


InkOverlay (Constructor) (Control)

Actualización: noviembre 2007

Inicializa una nueva instancia de la clase InkOverlay, asociándole un control.

Espacio de nombres:  Microsoft.Ink
Ensamblado:  Microsoft.Ink (en Microsoft.Ink.dll)

Sintaxis

'Declaración
Public Sub New ( _
    attachedControl As Control _
)
'Uso
Dim attachedControl As Control

Dim instance As New InkOverlay(attachedControl)
public InkOverlay(
    Control attachedControl
)
public:
InkOverlay(
    Control^ attachedControl
)
public InkOverlay(
    Control attachedControl
)
public function InkOverlay(
    attachedControl : Control
)

Parámetros

Ejemplos

En este ejemplo de C# se inicializa una nueva instancia del objeto InkOverlay, theInkOverlay, se asocia al formulario y 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.
        theInkOverlay = new InkOverlay(this);
        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 formulario y 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.
        theInkOverlay = New InkOverlay(Me)
        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

Vea también

Referencia

InkOverlay (Clase)

InkOverlay (Miembros)

InkOverlay (Sobrecarga)

Microsoft.Ink (Espacio de nombres)

InkOverlay