Spread Windows Forms 7.0 Product Documentation
ColumnIndex Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > RangeGroupHitTestInformation Class : ColumnIndex Property


Glossary Item Box

Gets the column location referred to in an outline (range group).

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property ColumnIndex As Integer
Visual Basic (Usage)Copy Code
Dim instance As RangeGroupHitTestInformation
Dim value As Integer
 
value = instance.ColumnIndex
C# 
public int ColumnIndex {get;}

Example

The example returns the column index of the hit test.
C#Copy Code
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());
}
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.