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


オブジェクトの背景色
オブジェクトの前景(テキスト)色
オブジェクトのフォント情報
オブジェクトまたはテキストのセル内の水平配置
オブジェクトまたはテキストのセル内の垂直配置
オブジェクトの第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 _
)
'使用法
 
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)

パラメータ

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

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

 

 


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