Freigeben über


InkOverlayPaintingEventArgs.Graphics-Eigenschaft

Ruft das Graphics-Objekt ab, mit dem das Element gezeichnet wird.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public ReadOnly Property Graphics As Graphics
'Usage
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

Eigenschaftenwert

Typ: System.Drawing.Graphics
Das Objekt, mit dem das Element gezeichnet wird.

Beispiele

In diesem C#-Beispiel wird ein Ereignishandler für das Painting-Ereignis theInkOverlay_Painting erstellt. Der Ereignishandler füllt das Rechteck aus, in dem der InkOverlay mit Gelb festgelegt wird.

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

In diesem Microsoft® Visual Basic® .NET-Beispiel wird ein Ereignishandler für das Painting-Ereignis theInkOverlay_Painting erstellt. Der Ereignishandler füllt das Rechteck aus, in dem der InkOverlay mit Gelb festgelegt wird.

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

Plattformen

Windows Vista

.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.

Versionsinformationen

.NET Framework

Unterstützt in: 3.0

Siehe auch

Referenz

InkOverlayPaintingEventArgs-Klasse

InkOverlayPaintingEventArgs-Member

Microsoft.Ink-Namespace

InkOverlay

InkOverlay.Painting