MESCIUS SPREAD for Windows Forms 15.0J
Appearance コンストラクタ(Color,Color,Font,CellHorizontalAlignment,CellVerticalAlignment,Boolean,Boolean,Color,Color,Color,Color,VisualStyles)
使用例 

オブジェクトの背景色
オブジェクトの前景(テキスト)色
オブジェクトのフォント情報
オブジェクトまたはテキストのセル内の水平配置
オブジェクトまたはテキストのセル内の垂直配置
オブジェクトの第1ボタンを描画するかどうか
オブジェクトの第2ボタンを描画するかどうか
オブジェクト選択時のオブジェクトの背景色
オブジェクト選択時のオブジェクトの前景(テキスト)色
セルがロックされているときのオブジェクトの背景色
セルがロックされているときのオブジェクトの前景(テキスト)色
表示スタイルを使用して(XPテーマのように)レンダリングするかどうか
色、ボタン、配置、および表示スタイルを指定して、外観設定のセットを作成します。
構文

パラメータ

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 メンバ
オーバーロード一覧

 

 


© MESCIUS inc. All rights reserved.