FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace : HitTestType Enumeration |
'Declaration Public Enum HitTestType Inherits System.Enum
'Usage Dim instance As HitTestType
public enum HitTestType : System.Enum
Member | Description |
---|---|
ColumnFooter | Specifies that the location is in the column footer area of the component |
ColumnHeader | Specifies that the location is in the column header area of the component |
ColumnSplitBar | Specifies that the location is in the column splitter bar area of the component |
ColumnSplitBox | Specifies that the location is in the column split box of the component |
Corner | Specifies that the location is in the upper left sheet corner of a workbook |
Empty | Specifies an empty location |
FilterCellBar | Specifies that the location is in the filter bar |
FilterHeaderBar | Specifies that the location is in the header of the filter bar |
HorizontalScrollBar | Specifies that the location is in the horizontal scroll bar of the component |
RangeGroup | Specifies that the location is in the outline (range group) area of the component |
RowHeader | Specifies that the location is in the row header area of the component |
RowSplitBar | Specifies that the location is in the row splitter bar area of the component |
RowSplitBox | Specifies that the location is in the row split box of the component |
TabSplitBox | Specifies that the location is in the tab split box of the component |
TabStrip | Specifies that the location is in the sheet name tab area of the component |
TitleBar | Specifies that the location is in the titles bar |
VerticalScrollBar | Specifies that the location is in the vertical scroll bar of the component |
Viewport | Specifies that the location is in a viewport of the data area of the component |
private void fpSpread1CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e) { FarPoint.Win.Spread.HitTestInformation hti; hti = fpSpread1.HitTest(e.X, e.Y); if (hti.Type == HitTestType.ColumnHeader) { MessageBox.Show(hti.HeaderInfo.Column.ToString()); } }
Private Sub FpSpread1CellClick(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.CellClickEventArgs) Dim hti As FarPoint.Win.Spread.HitTestInformation hti = FpSpread1.HitTest(e.X, e.Y) If hti.Type = HitTestType.ColumnHeader Then MsgBox(hti.HeaderInfo.Column) End If End Sub
System.Object
System.ValueType
System.Enum
FarPoint.Win.Spread.HitTestType
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10
Locating the Cursor Using HitTest
Customizing the Default Header Labels