# PaintEventArgs

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Provides data for the [Paint](https://docs.wisej.com/api/wisej.web/general/control/..#paint) event.

{% tabs %}
{% tab title="C#" %}

```csharp
public class PaintEventArgs : EventArgs
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class PaintEventArgs
    Inherits EventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) PaintEventArgs(graphics, clipRect)

Initializes a new instance of the [PaintEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.painteventargs) class with the specified graphics and clipping rectangle.

| Name         | Type                                                                        | Description                                                                                                                      |
| ------------ | --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| **graphics** | [Graphics](https://docs.microsoft.com/dotnet/api/system.drawing.graphics)   | The [Graphics](https://docs.microsoft.com/dotnet/api/system.drawing.graphics) used to paint the item.                            |
| **clipRect** | [Rectangle](https://docs.microsoft.com/dotnet/api/system.drawing.rectangle) | The [Rectangle](https://docs.microsoft.com/dotnet/api/system.drawing.rectangle) that represents the rectangle in which to paint. |

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ClipRectangle

[Rectangle](https://docs.microsoft.com/dotnet/api/system.drawing.rectangle): Returns the rectangle in which to paint.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Graphics

[Graphics](https://docs.microsoft.com/dotnet/api/system.drawing.graphics): Returns the graphics used to paint.

## Used By

| Name                                                                                                  | Description                                                                                                                                                                                   |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [PaintEventHandler](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.painteventhandler) | Represents the method that will handle the [Paint](https://docs.wisej.com/api/wisej.web/general/control/..#paint) event of a [Control](https://docs.wisej.com/api/wisej.web/general/control). |
