FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetDataModel Class : GetColumnIndex Method |
'Declaration Public Function GetColumnIndex( _ ByVal columnName As String _ ) As Integer
'Usage Dim instance As DefaultSheetDataModel Dim columnName As String Dim value As Integer value = instance.GetColumnIndex(columnName)
public int GetColumnIndex( string columnName )
FarPoint.Win.Spread.Model.DefaultSheetDataModel dm; dm = fpSpread1.ActiveSheet.Models.Data; int i = dm.GetColumnIndex("EmployeeID"); fpSpread1.ActiveSheet.Columns[i].ForeColor = Color.Red;
Dim dm As FarPoint.Win.Spread.Model.DefaultSheetDataModel dm = FpSpread1.ActiveSheet.Models.Data Dim i As Integer = dm.GetColumnIndex("EmployeeID") FpSpread1.ActiveSheet.Columns(i).ForeColor = Color.Red
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