FarPoint.Win.Spread アセンブリ > FarPoint.Win.Spread 名前空間 > Appearance クラス > Appearance コンストラクタ : Appearance コンストラクタ(Color,Color,Font,CellHorizontalAlignment,CellVerticalAlignment,Boolean,Boolean,Color,Color,Color,Color,VisualStyles,SortState,FilterState) |
'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, _ ByVal sortState As SortState, _ ByVal filterState As FilterState _ )
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, SortState sortState, FilterState filterState )
FarPoint.Win.Spread.Appearance appr = new FarPoint.Win.Spread.Appearance(Color.Lavender, Color.LavenderBlush, new Font("Ms Sans Serif", 10), CellHorizontalAlignment.Center, CellVerticalAlignment.Center, true, true, Color.Yellow, Color.Aqua, Color.Bisque, Color.Azure, Win.VisualStyles.On, SortState.None, FilterState.None); FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); si.SetAppearance(appr); fpSpread1.ActiveSheet.SetStyleInfo(-1, -1, si);
Dim appr As New FarPoint.Win.Spread.Appearance(Color.Lavender, Color.LavenderBlush, New Font("Ms Sans Serif", 10), CellHorizontalAlignment.Center, CellVerticalAlignment.Center, True, True, Color.Yellow, Color.Aqua, Color.Bisque, Color.Azure, Win.VisualStyles.On, SortState.None, FilterState.None) Dim si As New FarPoint.Win.Spread.StyleInfo si.SetAppearance(appr) fpSpread1.ActiveSheet.SetStyleInfo(-1, -1, si)