# Component

Namespace: **Wisej.Web**

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

* [Component](/api/wisej.base/general/wisej.base.component.md)
  * [Component](/api/wisej.web/general/wisej.web.component.md)

Extends [Component](/api/wisej.base/general/wisej.base.component.md) and enables the components to appear on the designer surface.

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

```csharp
public class Component : Component, IComponent
```

{% endtab %}

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

```visual-basic
Public Class Component
    Inherits Component
    Implements IComponent
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](/files/hsR4ok3152WyAf8J2C1u) Component()

Default constructor

## Properties

### ![](/files/lzopMboA31bVq8UIcbT3) DesignMode

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns a value that indicates whether the [IComponent](https://docs.microsoft.com/dotnet/api/system.componentmodel.icomponent) is currently in design mode.

### ![](/files/lzopMboA31bVq8UIcbT3) Events

[EventHandlerList](https://docs.microsoft.com/dotnet/api/system.componentmodel.eventhandlerlist): Returns the list of event handlers that are attached to this [Component](https://docs.microsoft.com/dotnet/api/system.componentmodel.component).

## Methods

### ![](/files/lzopMboA31bVq8UIcbT3) Dispose(disposing)

Disposes the component and removes it from the design container.

| Parameter     | Type                                                            | Description                                                                 |
| ------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------- |
| **disposing** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | true when this method is called by the application rather than a finalizer. |

### ![](/files/hsR4ok3152WyAf8J2C1u) Update()

Updates the component on the client.

## Inherited By

| Name                                                                                                    | Description                                                                                                                                                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [BindableComponent](/api/wisej.web/general/wisej.web.bindablecomponent.md)                              | Extends [Component](/api/wisej.web/general/wisej.web.component.md) and enables the component to participated if data binding operations and have their own [DataBindings](/api/wisej.web/general/wisej.web.bindablecomponent.md#databindings).                                                                                      |
| [Timer](/api/wisej.web/other-components/wisej.web.timer.md)                                             | Implements a timer that raises an event at user-defined intervals.                                                                                                                                                                                                                                                                  |
| [DesktopTaskBarItem](/api/wisej.web/containers/desktop/wisej.web.desktoptaskbaritem.md)                 | Represents a component in the [Desktop](/api/wisej.web/containers/desktop.md) control's taskbar.                                                                                                                                                                                                                                    |
| [DesktopTaskBarItemControl](/api/wisej.web/containers/desktop/wisej.web.desktoptaskbaritemcontrol.md)   | Represents a component in the [Desktop](/api/wisej.web/containers/desktop.md) control's taskbar that can host any [Control](/api/wisej.web/general/control.md).                                                                                                                                                                     |
| [DesktopTaskBarItemDateTime](/api/wisej.web/containers/desktop/wisej.web.desktoptaskbaritemdatetime.md) | Represents a DateTime component in the [Desktop](/api/wisej.web/containers/desktop.md) control's taskbar.                                                                                                                                                                                                                           |
| [Animation](/api/wisej.web/extenders/animation.md)                                                      | Provides support for animating controls or windows using predefined animations definitions or custom animations in response to certain events.                                                                                                                                                                                      |
| [ErrorProvider](/api/wisej.web/extenders/errorprovider.md)                                              | Provides a user interface for indicating that a control on a form has an error associated with it.                                                                                                                                                                                                                                  |
| [HelpTip](/api/wisej.web/extenders/wisej.web.helptip.md)                                                | Represents a small rectangular pop-up window that displays a brief help text next to a control when it gets activated (focused).                                                                                                                                                                                                    |
| [JavaScript](/api/wisej.web/extenders/javascript.md)                                                    | Allows controls to execute javascript code.                                                                                                                                                                                                                                                                                         |
| [Rotation](/api/wisej.web/extenders/rotation.md)                                                        | Add rotation capabilities along the X,Y,Z axis to [Control](/api/wisej.web/general/control.md) controls.                                                                                                                                                                                                                            |
| [StyleSheet](/api/wisej.web/extenders/wisej.web.stylesheet.md)                                          | Adds CSS styling to controls.                                                                                                                                                                                                                                                                                                       |
| [ToolTip](/api/wisej.web/extenders/wisej.web.tooltip.md)                                                | Represents a small rectangular pop-up window that displays a brief description of a control's purpose when the user rests the pointer on the control.                                                                                                                                                                               |
| [ImageList](/api/wisej.web/content/imagelist.md)                                                        | Provides methods to manage a collection of [Image](https://docs.microsoft.com/dotnet/api/system.drawing.image) objects. This class cannot be inherited.                                                                                                                                                                             |
| [ColumnHeader](/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader.md)                       | Displays a standard column header in a [ListView](/api/wisej.web/lists-and-grids/listview.md) control.                                                                                                                                                                                                                              |
| [ImageColumnHeader](/api/wisej.web/lists-and-grids/listview/wisej.web.imagecolumnheader.md)             | Displays an image column header in a [ListView](/api/wisej.web/lists-and-grids/listview.md) control.                                                                                                                                                                                                                                |
| [CheckedMenuItem](/api/wisej.web/menus/wisej.web.checkedmenuitem.md)                                    | Represents an individual menu item that is displayed within a [MainMenu](/api/wisej.web/menus/wisej.web.mainmenu.md) or [ContextMenu](/api/wisej.web/menus/wisej.web.contextmenu.md) and always shows a checkbox next to the label.                                                                                                 |
| [ContextMenu](/api/wisej.web/menus/wisej.web.contextmenu.md)                                            | Represents a context menu associated to a [Control](/api/wisej.web/general/control.md).                                                                                                                                                                                                                                             |
| [LinkMenuItem](/api/wisej.web/menus/wisej.web.linkmenuitem.md)                                          | Represents an individual menu item that is displayed within a [MainMenu](/api/wisej.web/menus/wisej.web.mainmenu.md) or [ContextMenu](/api/wisej.web/menus/wisej.web.contextmenu.md) rendered using the \<a> link element to let the browser process the specified [HRef](/api/wisej.web/menus/wisej.web.linkmenuitem.md#href) URL. |
| [MainMenu](/api/wisej.web/menus/wisej.web.mainmenu.md)                                                  | Represents the main menu in a [Form](/api/wisej.web/menus/wisej.web.mainmenu.md#form).                                                                                                                                                                                                                                              |
| [Menu](/api/wisej.web/menus/wisej.web.menu.md)                                                          | Represents the base functionality for all menus.                                                                                                                                                                                                                                                                                    |
| [MenuItem](/api/wisej.web/menus/wisej.web.menuitem.md)                                                  | Represents an individual item that is displayed within a [MainMenu](/api/wisej.web/menus/wisej.web.mainmenu.md) or [ContextMenu](/api/wisej.web/menus/wisej.web.contextmenu.md).                                                                                                                                                    |
| [StatusBarControl](/api/wisej.web/containers/statusbar/wisej.web.statusbarcontrol.md)                   | Represents a panel in a [StatusBar](/api/wisej.web/containers/statusbar.md) control that can host any [Control](/api/wisej.web/containers/statusbar/wisej.web.statusbarcontrol.md#control).                                                                                                                                         |
| [StatusBarPanel](/api/wisej.web/containers/statusbar/wisej.web.statusbarpanel.md)                       | Represents a panel in a [StatusBar](/api/wisej.web/containers/statusbar.md) control.                                                                                                                                                                                                                                                |
| [ToolBarButton](/api/wisej.web/containers/toolbar/wisej.web.toolbarbutton.md)                           | Represents an item in the [ToolBar](/api/wisej.web/containers/toolbar.md).                                                                                                                                                                                                                                                          |

## Implements

| Name                                                                              | Description                                                                                                     |
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [IUserData](/api/wisej.web/interfaces/wisej.web.iuserdata.md)                     | Provides access to the `UserData` and `Tag` properties associated to the component implementing this interface. |
| [IWisejComponent](/api/wisej.core/interfaces/wisej.core.iwisejcomponent.md)       | All wisej components implement this interface.                                                                  |
| [IWisejSerializable](/api/wisej.core/interfaces/wisej.core.iwisejserializable.md) | Allows an object to serialize itself.                                                                           |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/api/wisej.web/general/wisej.web.component.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
