Back to Devexpress

DxHtmlElementMouseEventArgs.X Property

corelibraries-devexpress-dot-utils-dot-html-dot-dxhtmlelementmouseeventargs.md

latest2.2 KB
Original Source

DxHtmlElementMouseEventArgs.X Property

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

Declaration

csharp
public int X { get; }
vb
Public ReadOnly Property X As Integer

Property Value

TypeDescription
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

csharp
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

DxHtmlElementMouseEventArgs Members

DevExpress.Utils.Html Namespace