Back to Devexpress

BaseEdit.SendMouse(Point, MouseButtons) Method

windowsforms-devexpress-dot-xtraeditors-dot-baseedit-dot-sendmouse-x28-system-dot-drawing-dot-point-system-dot-windows-dot-forms-dot-mousebuttons-x29.md

latest3.4 KB
Original Source

BaseEdit.SendMouse(Point, MouseButtons) Method

Raises the RepositoryItem.MouseDown event.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual void SendMouse(
    Point position,
    MouseButtons button
)
vb
Public Overridable Sub SendMouse(
    position As Point,
    button As MouseButtons
)

Parameters

NameTypeDescription
positionPoint

A Point structure specifying the mouse pointer coordinates.

| | button | MouseButtons |

A bitwise combination of MouseButtons enumeration values specifying the pressed mouse buttons.

|

Remarks

This method supports the internal editor library’s infrastructure and you will have no need to use it in your applications.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SendMouse(Point, MouseButtons) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-grid-display-editors-in-columns-headers/CS/WindowsApplication1/InplaceEditorHelper/ColumnInplaceEditorHelper.cs#L130

csharp
ActiveEditor.EditValue = EditValue;
ActiveEditor.SendMouse(ActiveEditor.PointToClient(Control.MousePosition), Control.MouseButtons);
ActiveEditor.Properties.UnLockEvents();

winforms-grid-display-editors-in-columns-headers/VB/InplaceEditorHelper/ColumnInplaceEditorHelper.vb#L123

vb
ActiveEditor.EditValue = EditValue
ActiveEditor.SendMouse(ActiveEditor.PointToClient(Control.MousePosition), Control.MouseButtons)
ActiveEditor.Properties.UnLockEvents()

See Also

MouseDown

BaseEdit Class

BaseEdit Members

DevExpress.XtraEditors Namespace