FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.Model 名前空間 > DefaultSheetDataModel クラス : GetColumnIndex メソッド |
'Declaration Public Function GetColumnIndex( _ ByVal columnName As String _ ) As Integer
'使用法 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