次の方法で共有


InkOverlayPaintingEventArgs.Graphics プロパティ

項目のペイントに使用される Graphics オブジェクトを取得します。

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

構文

'宣言
Public ReadOnly Property Graphics As Graphics
'使用
Dim instance As InkOverlayPaintingEventArgs
Dim value As Graphics

value = instance.Graphics
public Graphics Graphics { get; }
public:
property Graphics^ Graphics {
    Graphics^ get ();
}
/** @property */
public Graphics get_Graphics()
public function get Graphics () : Graphics

プロパティ値

型 : System.Drawing.Graphics
項目のペイントに使用されるオブジェクト。

この C# の例では、Painting イベント theInkOverlay_Painting のイベント ハンドラが作成されます。イベント ハンドラは、InkOverlay が発生する四角形を黄色で塗りつぶします。

private void theInkOverlay_Painting(object sender, InkOverlayPaintingEventArgs e)
{
    e.Graphics.FillRectangle(new SolidBrush(Color.Yellow), e.ClipRectangle);
}

この Microsoft® Visual Basic® .NET の例では、Painting イベント theInkOverlay_Painting のイベント ハンドラが作成されます。イベント ハンドラは、InkOverlay が発生する四角形を黄色で塗りつぶします。

Private Sub theInkOverlay_Painting(ByVal sender As Object, ByVal e As Microsoft.Ink.InkOverlayPaintingEventArgs) _
Handles theInkOverlay.Painting
    e.Graphics.FillRectangle(New SolidBrush(Color.Yellow), e.ClipRectangle)
End Sub

プラットフォーム

Windows Vista

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

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

InkOverlayPaintingEventArgs クラス

InkOverlayPaintingEventArgs メンバ

Microsoft.Ink 名前空間

InkOverlay

InkOverlay.Painting