Spread Windows Forms 11.0 Product Documentation
ColumnLevel Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > RangeGroupHitTestInformation Class : ColumnLevel Property
Gets the column level location referred to in an outline (range group).
Syntax
'Declaration
 
Public ReadOnly Property ColumnLevel As Integer
'Usage
 
Dim instance As RangeGroupHitTestInformation
Dim value As Integer
 
value = instance.ColumnLevel
public int ColumnLevel {get;}
Example
The example returns the column index of the hit test.
private void fpSpread1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) 
{
FarPoint.Win.Spread.RangeGroupHitTestInformation rght;
FarPoint.Win.Spread.HitTestInformation ht;
ht = fpSpread1.HitTest(e.X, e.Y);
rght = ht.RangeGroupInfo;
int x = rght.ColumnLevel;
int i = rght.ColumnIndex;
MessageBox.Show(x.ToString() + " - " + i.ToString());
}
Private Sub FpSpread1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles FpSpread1.MouseDown
Dim rght As FarPoint.Win.Spread.RangeGroupHitTestInformation
Dim ht As FarPoint.Win.Spread.HitTestInformation
ht = FpSpread1.HitTest(e.X, e.Y)
rght = ht.RangeGroupInfo
Dim x As Integer = rght.ColumnLevel
Dim i As Integer = rght.ColumnIndex
MsgBox(b.ToString() & " - " & i.ToString())
End Sub
See Also

Reference

RangeGroupHitTestInformation Class
RangeGroupHitTestInformation Members