# LayoutEventArgs

Namespace: **Wisej.Web**

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

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

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

```csharp
public class LayoutEventArgs : EventArgs
```

{% endtab %}

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

```visual-basic
Public Class LayoutEventArgs
    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) LayoutEventArgs(affectedComponent, affectedProperty)

Initializes a new instance of the [LayoutEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.layouteventargs) class with the specified control and property affected.

| Name                  | Type                                                                                 | Description                                 |
| --------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------- |
| **affectedComponent** | [IComponent](https://docs.microsoft.com/dotnet/api/system.componentmodel.icomponent) |                                             |
| **affectedProperty**  | [String](https://docs.microsoft.com/dotnet/api/system.string)                        | The property affected by the layout change. |

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

Initializes a new instance of the [LayoutEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.layouteventargs) class with the specified control and property affected.

| Name                 | Type                                                            | Description                                                                                        |
| -------------------- | --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| **affectedControl**  | [Control](https://docs.wisej.com/api/wisej.web/general/control) | The [Control](https://docs.wisej.com/api/wisej.web/general/control) affected by the layout change. |
| **affectedProperty** | [String](https://docs.microsoft.com/dotnet/api/system.string)   | The property affected by the layout change.                                                        |

## 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) AffectedComponent

[IComponent](https://docs.microsoft.com/dotnet/api/system.componentmodel.icomponent): Returns the [IComponent](https://docs.microsoft.com/dotnet/api/system.componentmodel.icomponent) affected by the layout change.

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

[Control](https://docs.wisej.com/api/wisej.web/general/control): Returns the child control affected by the change.

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

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns the property affected by the change.

## Used By

| Name                                                                                                    | Description                                                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [LayoutEventHandler](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.layouteventhandler) | Represents the method that will handle the [Layout](https://docs.wisej.com/api/wisej.web/general/control/..#layout) event of a [Control](https://docs.wisej.com/api/wisej.web/general/control). |
