Control Class |
Namespace: Eto.Forms
The Control type exposes the following members.
Name | Description | |
---|---|---|
![]() | Control() |
Initializes a new instance of the Control class.
|
![]() | Control(Control.IHandler) |
Initializes a new instance of the Container with the specified handler
|
Name | Description | |
---|---|---|
![]() | AllowDrop |
Gets or sets a value indicating whether this control can serve as drop target.
|
![]() | BackgroundColor |
Gets or sets the color for the background of the control
|
![]() | Bounds |
Gets the bounding rectangle of this control relative to its container
|
![]() | Cursor |
Gets or sets the type of cursor to use when the mouse is hovering over the control
|
![]() | Enabled |
Gets or sets a value indicating whether this Control (or its children) are enabled and accept user input.
|
![]() | HasFocus |
Gets a value indicating whether this instance has the keyboard input focus.
|
![]() | Height |
Gets or sets the height of the control size.
|
![]() | IsSuspended |
Gets a value indicating whether the layout of child controls is suspended.
|
![]() | IsVisualControl |
Gets a value indicating this Control is part of the visual tree.
|
![]() | Loaded |
Gets a value indicating that the control is loaded onto a form, that is it has been created, added to a parent, and shown
|
![]() | Location |
Gets the location of the control as positioned by the container
|
![]() | LogicalParent |
Gets the logical parent control.
|
![]() | Parent |
Gets the container which this control has been added to, if any
|
![]() | ParentWindow |
Gets the window this control is contained in
|
![]() | Size |
Gets or sets the size of the control. Use -1 to specify auto sizing for either the width and/or height.
|
![]() | SupportedPlatformCommands |
Gets the supported platform commands that can be used to hook up system functions to user defined logic
|
![]() | TabIndex |
Gets or sets the tab index order for this control within its container.
|
![]() | Tag |
Gets or sets a user-defined object that contains data about the control
|
![]() | ToolTip |
Gets or sets the tool tip to show when the mouse is hovered over the control
|
![]() | Visible |
Gets or sets a value indicating whether this Control is visible to the user.
|
![]() | VisualControls |
Gets an enumeration of controls that are in the visual tree.
|
![]() | VisualParent |
Gets the visual container of this control, if any.
|
![]() | Width |
Gets or sets the width of the control size.
|
Name | Description | |
---|---|---|
![]() | ApplyStyles |
Applies the styles to the specified widget up the parent chain.
|
![]() | AttachNative |
Attaches the control for direct use in a native application
|
![]() | Detach |
Detaches the control by removing it from its parent
|
![]() | DetachNative |
Detaches the control when it is used in a native application, when you want to reuse the control.
|
![]() | Dispose |
Handles the disposal of this control
(Overrides Widget.Dispose(Boolean).) |
![]() | DoDragDrop(DataObject, DragEffects) |
Starts drag operation using this control as drag source.
|
![]() | DoDragDrop(DataObject, DragEffects, Image, PointF) |
Starts drag operation using this control as drag source.
|
![]() | FindParent(String) |
Finds a control in the parent hierarchy with the specified id |
![]() | FindParent(Type, String) |
Finds a control in the parent hierarchy with the specified type and ID if specified
|
![]() | Focus |
Attempts to set the keyboard input focus to this control, or the first child that accepts focus
|
![]() | GetCallback |
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides Widget.GetCallback().) |
![]() | Invalidate() |
Queues a repaint of the entire control on the screen and any of its children.
|
![]() | Invalidate(Boolean) |
Queues a repaint of the entire control on the screen
|
![]() | Invalidate(Rectangle) |
Queues a repaint of the specified rect of the control and any children.
|
![]() | Invalidate(Rectangle, Boolean) |
Queues a repaint of the specified rect of the control
|
![]() ![]() | MapPlatformCommand |
Specifies a command to execute for a platform-specific command
|
![]() | OnApplyCascadingStyles |
Called when cascading styles should be applied to this control.
|
![]() | OnDragDrop |
Raises the DragDrop event.
|
![]() | OnDragEnter |
Raises the DragEnter event.
|
![]() | OnDragLeave |
Raises the DragLeave event.
|
![]() | OnDragOver |
Raises the DragOver event.
|
![]() | OnEnabledChanged |
Raises the EnabledChanged event.
|
![]() | OnGotFocus |
Raises the GotFocus event.
|
![]() | OnKeyDown |
Raises the KeyDown event.
|
![]() | OnKeyUp |
Raises the KeyUp event.
|
![]() | OnLoad |
Raises the Load event.
|
![]() | OnLoadComplete |
Raises the LoadComplete event.
|
![]() | OnLostFocus |
Raises the LostFocus event.
|
![]() | OnMouseDoubleClick |
Raises the mouse MouseDoubleClick event.
|
![]() | OnMouseDown |
Raises the MouseDown event.
|
![]() | OnMouseEnter |
Raises the MouseEnter event.
|
![]() | OnMouseLeave |
Raises the MouseLeave event.
|
![]() | OnMouseMove |
Raises the MouseMove event.
|
![]() | OnMouseUp |
Raises the MouseUp event.
|
![]() | OnMouseWheel |
Raises the MouseWheel event.
|
![]() | OnPreLoad |
Raises the PreLoad event.
|
![]() | OnShown |
Raises the Shown event.
|
![]() | OnSizeChanged |
Raises the SizeChanged event.
|
![]() | OnStyleChanged |
Handles when the Style is changed.
(Overrides Widget.OnStyleChanged(EventArgs).) |
![]() | OnTextInput |
Raises the TextInput event.
|
![]() | OnUnLoad |
Raises the UnLoad event.
|
![]() | PointFromScreen |
Converts a point from screen space to control space.
|
![]() | PointToScreen |
Converts a point from control space to screen space
|
![]() | RectangleFromScreen |
Converts a rectangle from control space to screen space
|
![]() | RectangleToScreen |
Converts a rectangle from screen space to control space.
|
![]() | ResumeLayout |
Resumes the layout after it has been suspended, and performs a layout
|
![]() | SuspendLayout |
Suspends the layout of child controls
|
Name | Description | |
---|---|---|
![]() | DragDrop |
Occurs when a drag operation is dropped onto the control.
|
![]() | DragEnter |
Occurs when a drag operation enters the bounds of the control.
|
![]() | DragLeave |
Occurs when a drag operation leaves the bounds of the control or the drag operation was completed inside the control.
|
![]() | DragOver |
Occurs when a drag operation is over the control and needs updating based on position or keyboard state changes.
|
![]() | EnabledChanged |
Occurs when the Enabled value is changed.
|
![]() | GotFocus |
Occurs when the control receives keyboard focus.
|
![]() | KeyDown |
Occurs when a key has been pressed and is down
|
![]() | KeyUp |
Occurs when a key was released
|
![]() | Load |
Occurs when the control is displayed on a visible window
|
![]() | LoadComplete |
Occurs when the load is complete, which happens after the Load event
|
![]() | LostFocus |
Occurs when control loses keyboard focus
|
![]() | MouseDoubleClick |
Occurs when a mouse button is double clicked within the bounds of the control
|
![]() | MouseDown |
Occurs when a mouse button has been pressed
|
![]() | MouseEnter |
Occurs when the mouse enters the bounds of the control
|
![]() | MouseLeave |
Occurs when mouse leaves the bounds of the control
|
![]() | MouseMove |
Occurs when mouse moves within the bounds of the control, or when the mouse is captured
|
![]() | MouseUp |
Occurs when a mouse button is released
|
![]() | MouseWheel |
Occurs when mouse wheel has been changed
|
![]() | PreLoad |
Occurs before the control is loaded. See the Load event for more detail.
|
![]() | Shown |
Occurs when the control is shown on the screen
|
![]() | SizeChanged |
Occurs when the size of the control is changed.
|
![]() | TextInput |
Occurs when text is input for the control. Currently only partially supported on iOS.
|
![]() | UnLoad |
Occurs when the control is unloaded, which happens when removed from the control hierarchy or the window is closed.
|
Name | Description | |
---|---|---|
![]() ![]() | Implicit(String to Control) |
Converts a string to a label control implicitly.
|
![]() ![]() | Implicit(Image to Control) |
Converts an Image to a control implicitly.
|
Name | Description | |
---|---|---|
![]() ![]() | DragDropEvent |
Event identifier for handlers when attaching the DragDrop event
|
![]() ![]() | DragEnterEvent |
Event identifier for handlers when attaching the DragEnter event
|
![]() ![]() | DragLeaveEvent |
Event identifier for handlers when attaching the DragLeave event
|
![]() ![]() | DragOverEvent |
Event identifier for handlers when attaching the DragOver event
|
![]() ![]() | EnabledChangedEvent |
Event identifier for handlers when attaching the EnabledChanged event
|
![]() ![]() | GotFocusEvent |
Event identifier for handlers when attaching the GotFocus event
|
![]() ![]() | KeyDownEvent |
Event identifier for handlers when attaching the KeyDown event.
|
![]() ![]() | KeyUpEvent |
Event identifier for handlers when attaching the KeyUp event
|
![]() ![]() | LostFocusEvent |
Event identifier for handlers when attaching the LostFocus event
|
![]() ![]() | MouseDoubleClickEvent |
Event identifier for handlers when attaching the MouseDoubleClick event
|
![]() ![]() | MouseDownEvent |
Event identifier for handlers when attaching the MouseDown event
|
![]() ![]() | MouseEnterEvent |
Event identifier for handlers when attaching the MouseEnter event
|
![]() ![]() | MouseLeaveEvent |
Event identifier for handlers when attaching the MouseLeave event
|
![]() ![]() | MouseMoveEvent |
Event identifier for handlers when attaching the MouseMove event
|
![]() ![]() | MouseUpEvent |
Event identifier for handlers when attaching the MouseUp event
|
![]() ![]() | MouseWheelEvent |
Event identifier for handlers when attaching the MouseWheel event
|
![]() ![]() | ShownEvent |
Event identifier for handlers when attaching the Shown event
|
![]() ![]() | SizeChangedEvent |
Event identifier for handlers when attaching the SizeChanged event
|
![]() ![]() | TextInputEvent |
Event identifier for handlers when attaching the TextInput event
|