# Control.IHandler interface

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public interface Control.IHandler : Widget.IHandler, IContextMenuHost
```

Handler interface for [Control](https://eto.picoe.ca/api/type/eto.forms.control.md)

**Derived types:** [Calendar.IHandler](https://eto.picoe.ca/api/type/eto.forms.calendar.ihandler.md), [CollectionEditor.IHandler](https://eto.picoe.ca/api/type/eto.forms.collectioneditor.ihandler.md), [ColorPicker.IHandler](https://eto.picoe.ca/api/type/eto.forms.colorpicker.ihandler.md), [CommonControl.IHandler](https://eto.picoe.ca/api/type/eto.forms.commoncontrol.ihandler.md), [Container.IHandler](https://eto.picoe.ca/api/type/eto.forms.container.ihandler.md), [FilePicker.IHandler](https://eto.picoe.ca/api/type/eto.forms.filepicker.ihandler.md), [FontPicker.IHandler](https://eto.picoe.ca/api/type/eto.forms.fontpicker.ihandler.md), [Grid.IHandler](https://eto.picoe.ca/api/type/eto.forms.grid.ihandler.md), [ImageView.IHandler](https://eto.picoe.ca/api/type/eto.forms.imageview.ihandler.md), [NativeControlHost.IHandler](https://eto.picoe.ca/api/type/eto.forms.nativecontrolhost.ihandler.md), [ProgressBar.IHandler](https://eto.picoe.ca/api/type/eto.forms.progressbar.ihandler.md), [PropertyGrid.IHandler](https://eto.picoe.ca/api/type/eto.forms.propertygrid.ihandler.md), [SegmentedButton.IHandler](https://eto.picoe.ca/api/type/eto.forms.segmentedbutton.ihandler.md), [Slider.IHandler](https://eto.picoe.ca/api/type/eto.forms.slider.ihandler.md), [Spinner.IHandler](https://eto.picoe.ca/api/type/eto.forms.spinner.ihandler.md), [Stepper.IHandler](https://eto.picoe.ca/api/type/eto.forms.stepper.ihandler.md), [ThemedControlHandler<TControl, TWidget, TCallback>](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3.md), [TreeView.IHandler](https://eto.picoe.ca/api/type/eto.forms.treeview.ihandler.md), [WebView.IHandler](https://eto.picoe.ca/api/type/eto.forms.webview.ihandler.md)

## Properties

- [AllowDrop](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/allowdrop.md): Gets or sets a value indicating whether this control can serve as drop target.
- [BackgroundColor](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/backgroundcolor.md): Gets or sets the color for the background of the control
- [Cursor](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/cursor.md): Gets or sets the type of cursor to use when the mouse is hovering over the control
- [Enabled](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/enabled.md): Gets or sets a value indicating whether this [Control](https://eto.picoe.ca/api/type/eto.forms.control.md) is enabled and accepts user input.
- [HasFocus](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/hasfocus.md): Gets a value indicating whether this instance has the keyboard input focus.
- [Height](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/height.md): Gets or sets the height of the control size.
- [IsMouseCaptured](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/ismousecaptured.md): Gets a value indicating this control currently has mouse capture
- [Location](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/location.md): Gets the location of the control as positioned by the container
- [Size](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/size.md): Gets or sets the size of the control. Use -1 to specify auto sizing for either the width and/or height.
- [SupportedPlatformCommands](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/supportedplatformcommands.md): Gets the supported platform commands that can be used to hook up system functions to user defined logic
- [TabIndex](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/tabindex.md): Gets or sets the tab index order for this control within its container.
- [TabStop](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/tabstop.md): Gets or sets a value indicating whether the user can get to this control using the tab key.
- [ToolTip](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/tooltip.md): Gets or sets the tool tip to show when the mouse is hovered over the control
- [Visible](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/visible.md): Gets or sets a value indicating whether this [Control](https://eto.picoe.ca/api/type/eto.forms.control.md) is visible to the user.
- [VisualControls](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/visualcontrols.md): Gets an enumeration of controls that are in the visual tree.
- [Width](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/width.md): Gets or sets the width of the control size.

## Methods

- [AddGesture](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/addgesture.md): Adds a gesture to the control.
- [CaptureMouse](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/capturemouse.md): Captures all mouse events to this control.
- [ClearGestures](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/cleargestures.md): Removes all gestures from the control.
- [DoDragDrop](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/dodragdrop.md): Starts drag operation using this control as drag source.
- [Focus](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/focus.md): Attempts to set the keyboard input focus to this control, or the first child that accepts focus
- [GetNativeParentWindow](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/getnativeparentwindow.md): Gets a parent window wrapper around the native window
- [GetPreferredSize](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/getpreferredsize.md): Gets the preferred size of this control given the specified `availableSize`.
- [Invalidate](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/invalidate.md): (2 overloads) Queues a repaint of the entire control on the screen
- [MapPlatformCommand](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/mapplatformcommand.md): Specifies a command to execute for a platform-specific command
- [OnLoad](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/onload.md): Called when the control is loaded on a form
- [OnLoadComplete](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/onloadcomplete.md): Called after all other controls have been loaded
- [OnPreLoad](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/onpreload.md): Called before the control is loaded on a form
- [OnUnLoad](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/onunload.md): Called when the control is unloaded, which is when it is not currently on a displayed window
- [PointFromScreen](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/pointfromscreen.md): Converts a point from screen space to control space.
- [PointToScreen](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/pointtoscreen.md): Converts a point from control space to screen space
- [ReleaseMouseCapture](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/releasemousecapture.md): Releases the mouse capture after a call to [Control.IHandler.CaptureMouse()](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/capturemouse.md).
- [RemoveGesture](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/removegesture.md): Removes a gesture from the control.
- [ResumeLayout](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/resumelayout.md): Resumes the layout after it has been suspended, and performs a layout
- [SetParent](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/setparent.md): Called when the parent of the control has been set
- [SuspendLayout](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/suspendlayout.md): Suspends the layout of child controls
- [UpdateLayout](https://eto.picoe.ca/api/type/eto.forms.control.ihandler/updatelayout.md): Updates the layout of this control if necessary.

## Inherited Members

- From [Widget.IHandler](https://eto.picoe.ca/api/type/eto.widget.ihandler.md): [ID](https://eto.picoe.ca/api/type/eto.widget.ihandler/id.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget.ihandler/nativehandle.md), [Widget](https://eto.picoe.ca/api/type/eto.widget.ihandler/widget.md), [HandleEvent](https://eto.picoe.ca/api/type/eto.widget.ihandler/handleevent.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget.ihandler/initialize.md), [UnhandleEvent](https://eto.picoe.ca/api/type/eto.widget.ihandler/unhandleevent.md)
- From [IContextMenuHost](https://eto.picoe.ca/api/type/eto.forms.icontextmenuhost.md): [ContextMenu](https://eto.picoe.ca/api/type/eto.forms.icontextmenuhost/contextmenu.md)
