다음을 통해 공유


InkOverlayPaintingEventArgs.ClipRectangle Property

InkOverlayPaintingEventArgs.ClipRectangle Property

Gets the Rectangle Leave Site structure that represents the rectangle in which to paint.

Definition

Visual Basic .NET Public ReadOnly Property ClipRectangle As Rectangle
C# public Rectangle ClipRectangle { get; }
Managed C++ public: __property Rectangle* get_ClipRectangle();

Property Value

System.Drawing.Rectangle. The rectangle in which to paint.

This property is read-only. This property has no default value.

Examples

[C#]

This C# example creates an event handler for the Painting event, theInkOverlay_Painting. The event handler fills the rectangle where the InkOverlay will be with yellow.

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

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example creates an event handler for the Painting event, theInkOverlay_Painting. The event handler fills the rectangle where the InkOverlay will be with yellow.

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
        

See Also