this.spdSearchResult.ActiveSheet.Columns.Count = 8;//行数设定
this.spdSearchResult.ActiveSheet.Columns[0,7].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;//单元格对齐方式设定,
// spdSearchResult.ActiveSheet.SelectionStyle = FarPoint.Win.Spread.SelectionStyles.SelectionColors;
//Spreadの各列の見出しを設定する
this.spdSearchResult.ActiveSheet.ColumnHeader.Cells[0,0].Text = "カラーコード";//列头设定
//Spreadの各列の広さを設定する
this.spdSearchResult.ActiveSheet.Columns[0].Width = 80;
//表示しない列を非表示にする
this.spdSearchResult.ActiveSheet.Columns[4,7].Visible = false;
FarPoint.Win.Spread.Column col;
//非編集に設定する
col = spdSearchResult.ActiveSheet.Columns[0, 3];
col.Locked = true;
FarPoint.Win.Spread.CellType.DateTimeCellType cell;
//データの表示フォーマットを日時式にする
cell = new FarPoint.Win.Spread.CellType.DateTimeCellType();//单元格日期类型设定
cell.DateTimeFormat = FarPoint.Win.Spread.CellType.DateTimeFormat.ShortDateWithTime;
col = spdSearchResult.ActiveSheet.Columns[6, 7];
col.CellType = cell;