Gets the x-coordinate of the pointer position.
Syntax
Visual Basic (Declaration) | |
---|
Public ReadOnly Property X As Integer |
Property Value
Integer X-coordinate of the pointer position
Example
This example uses the CellClick event.
C# | Copy Code |
---|
private void fpSpread1CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
{
Point p = new Point(e.X, e.Y);
MessageBox.Show("You clicked at " + p.X + " - " + p.Y);
}
|
Visual Basic | Copy Code |
---|
Private Sub FpSpread1CellClick(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.CellClickEventArgs) Handles FpSpread1.CellClick
MessageBox.Show("You clicked at " & e.X & " - " & e.Y)
End Sub |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also