FlexGrid for WinRT
HitTest(RoutedEventArgs) Method
Example 

Windows.Devices.Input.MouseEventArgs that specifies the point to be tested.
Gets a HitTestInfo object that contains information about the grid at a given location.
Syntax
'Declaration
 
Public Overloads Function HitTest( _
   ByVal e As Windows.UI.Xaml.RoutedEventArgs _
) As HitTestInfo
public HitTestInfo HitTest( 
   Windows.UI.Xaml.RoutedEventArgs e
)

Parameters

e
Windows.Devices.Input.MouseEventArgs that specifies the point to be tested.

Return Value

A HitTestInfo object that contains information about the grid at the location specified by the e parameter.
Example
The code below handles the MouseMove event and shows the coordinates and content of the cell under the mouse.
void _flex_MouseMove(object sender, MouseEventArgs e)
{
    var ht = _flex.HitTest(e);
    _tb.Text = string.Format(
        "HitTest:: cell type {0}, row {1}, column {2}, content '{3}'", 
        ht.CellType, // e.g. Cell, ColumnHeader, RowHeader
        ht.Row, 
        ht.Column, 
        ht.CellRange.IsValid ? _flex[ht.Row, ht.Column] : "n/a");
}
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

Reference

C1FlexGrid Class
C1FlexGrid Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.

Product Support Forum  |   Documentation Feedback