FarPoint.Web.Spread 名前空間 > StyleInfo クラス : CellType プロパティ |
'Declaration
Public Overridable Property CellType As ICellType
public virtual ICellType CellType {get; set;}
このプロパティの設定は、StyleNameプロパティを使用してセルに名前付きスタイルが割り当てられていて、その名前付きスタイルがセル型を設定する場合、オーバーライドできます。
FarPoint.Web.Spread.StyleInfo copy = new FarPoint.Web.Spread.StyleInfo("DataAreaDefault"); copy.Border = new FarPoint.Web.Spread.Border(BorderStyle.Dotted, Color.DarkBlue); copy.CellType = new FarPoint.Web.Spread.CheckBoxCellType(); FarPoint.Web.Spread.StyleInfo si = new FarPoint.Web.Spread.StyleInfo(copy); FpSpread1.ActiveSheetView.DefaultStyle = si;
Dim copy As New FarPoint.Web.Spread.StyleInfo("DataAreaDefault") copy.Border = New FarPoint.Web.Spread.Border(BorderStyle.Dotted, Color.DarkBlue) copy.CellType = New FarPoint.Web.Spread.CheckBoxCellType Dim si As New FarPoint.Web.Spread.StyleInfo(copy) FpSpread1.ActiveSheetView.DefaultStyle = si