Component
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Extends Component and enables the components to appear on the designer surface.
- C#
- VB.NET
public class Component : Component, IComponent
Public Class Component
Inherits Component
Implements IComponent
Constructors
Component()
Default constructor
Properties
DesignMode
Boolean: Returns a value that indicates whether the IComponent is currently in design mode.
Value: true if the IComponent is in design mode; otherwise, false.
Events
EventHandlerList: Returns the list of event handlers that are attached to this Component.
Value: An EventHandlerList that provides the delegates for this component.
Methods
AddHandler(key, handler)
Adds a delegate to the handler list for the specified event key.
| Parameter | Type | Description |
|---|---|---|
| key | Object | The key identifier for the event. |
| handler | Delegate | The handler to add to the list. |
AddHandler(key, handler, lazyEvent)
Adds a delegate to the handler list for the specified event key.
| Parameter | Type | Description |
|---|---|---|
| key | Object | The key identifier for the event. |
| handler | Delegate | The handler to add to the list. |
| lazyEvent | Boolean | Indicates that the event being attached is a lazy event and requires the component to be updated. |
Dispose(disposing)
Disposes the component and removes it from the design container.
| Parameter | Type | Description |
|---|---|---|
| disposing | Boolean | true when this method is called by the application rather than a finalizer. |
FromHandle(handle)
Returns the component that is currently associated with the specified server-side id (handle).
| Parameter | Type | Description |
|---|---|---|
| handle | IntPtr | The handle to search for. |
Returns: Component. The Menu associated with the specified handle; returns null if no menu with the specified handle is found.
RemoveHandler(key, handler)
Removes a delegate from the handler list for the specified event key.
| Parameter | Type | Description |
|---|---|---|
| key | Object | The key identifier for the event. |
| handler | Delegate | The handler to add to the list. |
RemoveHandler(key, handler, lazyEvent)
Removes a delegate from the handler list for the specified event key.
| Parameter | Type | Description |
|---|---|---|
| key | Object | The key identifier for the event. |
| handler | Delegate | The handler to add to the list. |
| lazyEvent | Boolean | Indicates that the event being detached is a lazy event and requires the component to be updated. |
Update()
Updates the component on the client.
Inherited By
| Name | Description |
|---|---|
| BindableComponent | Extends Component and enables the component to participated if data binding operations and have their own DataBindings. |
| Timer | Implements a timer that raises an event at user-defined intervals. |
| DesktopTaskBarItem | Represents a component in the Desktop control's taskbar. |
| DesktopTaskBarItemControl | Represents a component in the Desktop control's taskbar that can host any Control. |
| DesktopTaskBarItemDateTime | Represents a DateTime component in the Desktop control's taskbar. |
| Animation | Provides support for animating controls or windows using predefined animations definitions or custom animations in response to certain events. |
| ErrorProvider | Provides a user interface for indicating that a control on a form has an error associated with it. |
| HelpTip | Represents a small rectangular pop-up window that displays a brief help text next to a control when it gets activated (focused). |
| JavaScript | Allows controls to execute javascript code. |
| Rotation | Add rotation capabilities along the X,Y,Z axis to Control controls. |
| StyleSheet | Adds CSS styling to controls. |
| ToolTip | 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 | Provides methods to manage a collection of Image objects. This class cannot be inherited. |
| ColumnHeader | Displays a standard column header in a ListView control. |
| ImageColumnHeader | Displays an image column header in a ListView control. |
| CheckedMenuItem | Represents an individual menu item that is displayed within a MainMenu or ContextMenu and always shows a checkbox next to the label. |
| ContextMenu | Represents a context menu associated to a Control. |
| LinkMenuItem | Represents an individual menu item that is displayed within a MainMenu or ContextMenu rendered using the <a> link element to let the browser process the specified HRef URL. |
| MainMenu | Represents the main menu in a Form. |
| Menu | Represents the base functionality for all menus. |
| MenuItem | Represents an individual item that is displayed within a MainMenu or ContextMenu. |
| StatusBarControl | Represents a panel in a StatusBar control that can host any Control. |
| StatusBarPanel | Represents a panel in a StatusBar control. |
| ToolBarButton | Represents an item in the ToolBar. |
Implements
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| IWisejComponent | All wisej components implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |