FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.Model 名前空間 > DefaultSheetStyleModel クラス > DefaultSheetStyleModel コンストラクタ : DefaultSheetStyleModel コンストラクタ(Int32,Int32,NamedStyleCollection) |
'Declaration Public Function New( _ ByVal rowCount As Integer, _ ByVal columnCount As Integer, _ ByVal namedStyles As NamedStyleCollection _ )
'使用法 Dim rowCount As Integer Dim columnCount As Integer Dim namedStyles As NamedStyleCollection Dim instance As New DefaultSheetStyleModel(rowCount, columnCount, namedStyles)
public DefaultSheetStyleModel( int rowCount, int columnCount, NamedStyleCollection namedStyles )
FarPoint.Win.Spread.Model.ISheetStyleModel iStyle; FarPoint.Win.Spread.StyleInfo sInfo = new FarPoint.Win.Spread.StyleInfo(); FarPoint.Win.Spread.NamedStyleCollection nsc = new FarPoint.Win.Spread.NamedStyleCollection(); FarPoint.Win.Spread.NamedStyle ns = new FarPoint.Win.Spread.NamedStyle(); ns.Border = new FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.DarkBlue, Color.LightBlue, 2); nsc.Add(ns); sInfo.BackColor = Color.LightBlue; iStyle = fpSpread1.ActiveSheet.Models.Style; iStyle.SetDirectAltRowInfo(0, sInfo); FarPoint.Win.Spread.Model.DefaultSheetStyleModel defstyleModel = new FarPoint.Win.Spread.Model.DefaultSheetStyleModel(10, 10, nsc); fpSpread2.ActiveSheet.Models.Style = defstyleModel;
Dim iStyle As FarPoint.Win.Spread.Model.ISheetStyleModel Dim sInfo As New FarPoint.Win.Spread.StyleInfo() Dim nsc As New FarPoint.Win.Spread.NamedStyleCollection() Dim ns As New FarPoint.Win.Spread.NamedStyle() ns.Border = New FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.DarkBlue, Color.LightBlue, 2) nsc.Add(ns) sInfo.BackColor = Color.LightBlue iStyle = FpSpread1.ActiveSheet.Models.Style iStyle.SetDirectAltRowInfo(0, sInfo) Dim defstyleModel As New FarPoint.Win.Spread.Model.DefaultSheetStyleModel(10, 10, nsc) FpSpread2.ActiveSheet.Models.Style = defstyleModel