corelibraries-devexpress-dot-utils-dot-html-dot-dxhtmlelementmouseeventargs.md
Returns the X coordinate of a mouse pointer.
Namespace : DevExpress.Utils.Html
Assembly : DevExpress.Data.Desktop.v25.2.dll
NuGet Packages : DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design
public int X { get; }
Public ReadOnly Property X As Integer
| Type | Description |
|---|---|
| Int32 |
The X coordinate of a mouse pointer.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the X property.
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-chat-for-net-framework/CS/DevExpress.AI.WinForms.HtmlChat/ChatControl.cs#L100
var size = ScaleDPI.ScaleSize(new Size(212, 100));
var location = new Point(e.X - size.Width / 2, e.Y - size.Height + ScaleDPI.ScaleVertical(8));
Rectangle screenRect = gridControl.RectangleToScreen(new Rectangle(location, size));
See Also
DxHtmlElementMouseEventArgs Class