Spread for ASP.NET 7.0 Product Documentation
GetColumnIndex Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class : GetColumnIndex Method


column

Glossary Item Box

Returns the client column index for the specified column.

Syntax

Visual Basic (Declaration) 
Public Function GetColumnIndex( _
   ByVal column As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim column As Integer
Dim value As Integer
 
value = instance.GetColumnIndex(column)
C# 
public int GetColumnIndex( 
   int column
)

Parameters

column

Example

This example uses the GetColumnIndex method.
C#Copy Code
FpSpread1.Sheets[0].RowCount = 30;
ListBox1.Items.Add(FpSpread1.GetColumnIndex(1).ToString());
ListBox1.Items.Add(FpSpread1.GetRowIndex(1, 1).ToString());
ListBox1.Items.Add(FpSpread1.GetPageIndex(11).ToString());
Visual BasicCopy Code
FpSpread1.Sheets(0).RowCount = 30
ListBox1.Items.Add(FpSpread1.GetColumnIndex(1).ToString())
ListBox1.Items.Add(FpSpread1.GetRowIndex(1, 1).ToString())
ListBox1.Items.Add(FpSpread1.GetPageIndex(11).ToString())

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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