New to Telerik UI for WinForms? Start a free 30-day trial

IInputElement

Interface

Establishes the common events and also the event-related properties and methods for basic input processing by Telerik Presentation Foundation (TPF) elements.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public interface IInputElement

Properties

Gets or sets whether this element can receive keyboard focus. EditorBaseElement always reports true and ignores assignments.

C#
bool Focusable { get; set; }

Gets whether this element is enabled to receive input.

C#
bool IsEnabled { get; }

Gets whether this element currently has keyboard focus.

C#
bool IsFocused { get; }

Gets whether this element currently owns mouse capture.

C#
bool IsMouseCaptured { get; }

Gets whether the mouse is considered over this element by the TPF hover state; this state can include sibling elements in the same parent item.

C#
bool IsMouseOver { get; }

Methods

Captures mouse input for this element.

C#
bool CaptureMouse()
Returns:

bool

true if the element owns mouse capture after the request; otherwise, false.

Requests keyboard focus for this element.

C#
bool Focus()
Returns:

bool

true if keyboard focus is assigned to the element; otherwise, false.

Releases mouse capture held by this element.

C#
void ReleaseMouseCapture()

Events

Raised when this element receives a key-down notification. Use it for key-state commands; character input is exposed through KeyPress.

C#
event KeyEventHandler KeyDown

Raised for character input, unlike KeyDown and KeyUp, which report key transitions.

C#
event KeyPressEventHandler KeyPress

Raised when this element receives a key-up notification.

C#
event KeyEventHandler KeyUp

Raised when this element receives mouse-button press input.

C#
event MouseEventHandler MouseDown

Raised when the mouse pointer enters this element's bounds.

C#
event EventHandler MouseEnter

Raised when the mouse pointer leaves this element's bounds.

C#
event EventHandler MouseLeave

Raised when this element receives mouse-move input.

C#
event MouseEventHandler MouseMove

Raised when this element receives mouse-button release input.

C#
event MouseEventHandler MouseUp

Raised when this element receives mouse-wheel input.

C#
event MouseEventHandler MouseWheel