次の方法で共有


InkOverlay コンストラクタ (Control)

InkOverlay クラスの新しいインスタンスを初期化し、コントロールを関連付けます。

名前空間 :  Microsoft.Ink
アセンブリ :  Microsoft.Ink (Microsoft.Ink.dll 内)

構文

'宣言
Public Sub New ( _
    attachedControl As Control _
)
'使用
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
)

パラメータ

この C# の例では、InkOverlay オブジェクト theInkOverlay の新しいインスタンスを初期化し、フォームと関連付け、有効にします。

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());
    }
}

この Microsoft Visual Basic .NET の例では、InkOverlay オブジェクト theInkOverlay の新しいインスタンスを初期化し、フォームと関連付け、有効にします。

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

プラットフォーム

Windows Vista

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

InkOverlay クラス

InkOverlay メンバ

InkOverlay オーバーロード

Microsoft.Ink 名前空間

InkOverlay