Compartir a través de


InkOverlayPaintingEventArgs.ClipRectangle (Propiedad)

Actualización: noviembre 2007

Obtiene la estructura Rectangledel que representa el rectángulo en el que se desea dibujar.

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

Sintaxis

'Declaración
Public ReadOnly Property ClipRectangle As Rectangle
'Uso
Dim instance As InkOverlayPaintingEventArgs
Dim value As Rectangle

value = instance.ClipRectangle
public Rectangle ClipRectangle { get; }
public:
property Rectangle ClipRectangle {
    Rectangle get ();
}
/** @property */
public Rectangle get_ClipRectangle()
public function get ClipRectangle () : Rectangle

Valor de propiedad

Tipo: System.Drawing.Rectangle
Rectángulo en el que se desea dibujar.

Ejemplos

En este ejemplo de C# se crea un controlador para el evento Painting, theInkOverlay_Painting. El controlador de eventos rellena el rectángulo en el que InkOverlay estará en amarillo.

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

En este ejemplo de Microsoft® Visual Basic® .NET se crea un controlador para el evento Painting, theInkOverlay_Painting. El controlador de eventos rellena el rectángulo en el que InkOverlay estará en amarillo.

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

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

InkOverlayPaintingEventArgs (Clase)

InkOverlayPaintingEventArgs (Miembros)

Microsoft.Ink (Espacio de nombres)

InkOverlay

InkOverlay.Painting