FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > Appearance クラス > Appearance コンストラクタ : Appearance コンストラクタ(Color,Color,Font,CellHorizontalAlignment,CellVerticalAlignment,Boolean,Boolean,Color,Color,Color,Color,VisualStyles) |
'Declaration
Public Function New( _ ByVal backColor As Color, _ ByVal foreColor As Color, _ ByVal font As Font, _ ByVal horizontalAlignment As CellHorizontalAlignment, _ ByVal verticalAlignment As CellVerticalAlignment, _ ByVal drawPrimaryButton As Boolean, _ ByVal drawSecondaryButton As Boolean, _ ByVal selectionBackColor As Color, _ ByVal selectionForeColor As Color, _ ByVal lockBackColor As Color, _ ByVal lockForeColor As Color, _ ByVal visualStyle As VisualStyles _ )
'使用法
Dim backColor As Color Dim foreColor As Color Dim font As Font Dim horizontalAlignment As CellHorizontalAlignment Dim verticalAlignment As CellVerticalAlignment Dim drawPrimaryButton As Boolean Dim drawSecondaryButton As Boolean Dim selectionBackColor As Color Dim selectionForeColor As Color Dim lockBackColor As Color Dim lockForeColor As Color Dim visualStyle As VisualStyles Dim instance As New Appearance(backColor, foreColor, font, horizontalAlignment, verticalAlignment, drawPrimaryButton, drawSecondaryButton, selectionBackColor, selectionForeColor, lockBackColor, lockForeColor, visualStyle)
public Appearance( Color backColor, Color foreColor, Font font, CellHorizontalAlignment horizontalAlignment, CellVerticalAlignment verticalAlignment, bool drawPrimaryButton, bool drawSecondaryButton, Color selectionBackColor, Color selectionForeColor, Color lockBackColor, Color lockForeColor, VisualStyles visualStyle )
FarPoint.Win.Spread.Appearance appr = new FarPoint.Win.Spread.Appearance(Color.Yellow, Color.Red, new Font("Comic Sans MS", 10), FarPoint.Win.Spread.CellHorizontalAlignment.Right, FarPoint.Win.Spread.CellVerticalAlignment.Bottom, false, false, Color.Teal, Color.DarkBlue, Color.Black, Color.White, FarPoint.Win.VisualStyles.Auto); FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); si.SetAppearance(appr); fpSpread1.ActiveSheet.SetStyleInfo(0, 0, si);
Dim appr As New FarPoint.Win.Spread.Appearance(Color.Yellow, Color.Red, New Font("Comic Sans MS", 10), FarPoint.Win.Spread.CellHorizontalAlignment.Right, FarPoint.Win.Spread.CellVerticalAlignment.Bottom, False, False, Color.Teal, Color.DarkBlue, Color.Black, Color.White, FarPoint.Win.VisualStyles.Auto) Dim si As New FarPoint.Win.Spread.StyleInfo si.SetAppearance(appr) FpSpread1.ActiveSheet.SetStyleInfo(0, 0, si)