PowerTools SPREAD for Windows Forms 8.0J
Appearance コンストラクタ(Color,Color,Font,CellHorizontalAlignment,CellVerticalAlignment,Boolean,Boolean,Color,Color,Color,Color,VisualStyles,SortState,FilterState)


オブジェクトの背景色
オブジェクトの前景(テキスト)色
オブジェクトのフォント情報
オブジェクトまたはテキストのセル内の水平配置
オブジェクトまたはテキストのセル内の垂直配置
オブジェクトの第1ボタンを描画するかどうか
オブジェクトの第2ボタンを描画するかどうか
オブジェクト選択時のオブジェクトの背景色
オブジェクト選択時のオブジェクトの前景(テキスト)色
セルがロックされているときのオブジェクトの背景色
セルがロックされているときのオブジェクトの前景(テキスト)色
表示スタイルを使用して(XPテーマのように)レンダリングするかどうか
ソート状態
フィルタリング状態
色、ボタン、配置、ビジュアルスタイル、ソートおよびフィルタリング状態を指定して、外観設定のセットを作成します。
構文
'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 _
)
'使用法
 
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 sortState As SortState
Dim filterState As FilterState
 
Dim instance As New Appearance(backColor, foreColor, font, horizontalAlignment, verticalAlignment, drawPrimaryButton, drawSecondaryButton, selectionBackColor, selectionForeColor, lockBackColor, lockForeColor, visualStyle, sortState, filterState)

パラメータ

backColor
オブジェクトの背景色
foreColor
オブジェクトの前景(テキスト)色
font
オブジェクトのフォント情報
horizontalAlignment
オブジェクトまたはテキストのセル内の水平配置
verticalAlignment
オブジェクトまたはテキストのセル内の垂直配置
drawPrimaryButton
オブジェクトの第1ボタンを描画するかどうか
drawSecondaryButton
オブジェクトの第2ボタンを描画するかどうか
selectionBackColor
オブジェクト選択時のオブジェクトの背景色
selectionForeColor
オブジェクト選択時のオブジェクトの前景(テキスト)色
lockBackColor
セルがロックされているときのオブジェクトの背景色
lockForeColor
セルがロックされているときのオブジェクトの前景(テキスト)色
visualStyle
表示スタイルを使用して(XPテーマのように)レンダリングするかどうか
sortState
ソート状態
filterState
フィルタリング状態
次のサンプルコードは、Appearanceオブジェクトを使用してStyleInfoオブジェクトの動作を設定します。
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)
参照

Appearance クラス
Appearance メンバ
オーバーロード一覧

 

 


© 2004-2015, GrapeCity inc. All rights reserved.