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