'Declaration Public Enum HitTestType Inherits System.Enum
'Usage Dim instance As HitTestType
public enum HitTestType : System.Enum
'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
Locating the Cursor Using HitTest
Customizing the Default Header Labels