PowerTools SPREAD for Windows Forms 8.0J
PaintBackground(Graphics,Boolean,Boolean,Boolean,Boolean,Rectangle,Int32,Int32,VisualStyles,Boolean,Color) メソッド


セルを描画するグラフィックインタフェース
XPテーマを使用するかどうか
画面に描画するかどうか。
押された状態かどうか
セルがフォーカスを持っているかどうか
境界矩形。
x軸方向の解像度(DPI)を表す整数
y軸方向の解像度(DPI)を表す整数
ビジュアルスタイルを有効にするかどうか
右から左に描画するかどうか
セルの背景色
拡張ヘッダセルの背景を描画します。
構文
'Declaration
 
Protected Overridable Sub PaintBackground( _
   ByVal g As Graphics, _
   ByRef useXpStyles As Boolean, _
   ByVal toscreen As Boolean, _
   ByVal pressed As Boolean, _
   ByVal focus As Boolean, _
   ByVal r As Rectangle, _
   ByVal dpx As Integer, _
   ByVal dpy As Integer, _
   ByVal style As VisualStyles, _
   ByVal rightToLeft As Boolean, _
   ByVal backColor As Color _
) 
'使用法
 
Dim instance As ColumnHeaderRenderer
Dim g As Graphics
Dim useXpStyles As Boolean
Dim toscreen As Boolean
Dim pressed As Boolean
Dim focus As Boolean
Dim r As Rectangle
Dim dpx As Integer
Dim dpy As Integer
Dim style As VisualStyles
Dim rightToLeft As Boolean
Dim backColor As Color
 
instance.PaintBackground(g, useXpStyles, toscreen, pressed, focus, r, dpx, dpy, style, rightToLeft, backColor)
protected virtual void PaintBackground( 
   Graphics g,
   ref bool useXpStyles,
   bool toscreen,
   bool pressed,
   bool focus,
   Rectangle r,
   int dpx,
   int dpy,
   VisualStyles style,
   bool rightToLeft,
   Color backColor
)

パラメータ

g
セルを描画するグラフィックインタフェース
useXpStyles
XPテーマを使用するかどうか
toscreen
画面に描画するかどうか。
pressed
押された状態かどうか
focus
セルがフォーカスを持っているかどうか
r
境界矩形。
dpx
x軸方向の解像度(DPI)を表す整数
dpy
y軸方向の解像度(DPI)を表す整数
style
ビジュアルスタイルを有効にするかどうか
rightToLeft
右から左に描画するかどうか
backColor
セルの背景色
参照

ColumnHeaderRenderer クラス
ColumnHeaderRenderer メンバ

 

 


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