GrapeCity SPREAD for Windows Forms 11.0J
PaintHeader(Graphics,Rectangle,Rectangle,Color,Color,Font,HorizontalAlignment,VerticalAlignment,Boolean,Boolean,String,String,ButtonTextAlign,TextOrientation,Boolean,Int32,Color,Color,Image,Image,Boolean,HotkeyPrefix,VisualStyles,Boolean,Boolean,Appearance,Double,Single) メソッド


ヘッダ セルを描画するためのグラフィック デバイス インタフェース
ヘッダセルの境界を表す矩形領域の位置とサイズ。
テキストの矩形領域
ヘッダ セルの背景色
ヘッダ セルのテキスト色
ヘッダ セルのフォント
ヘッダ セルのテキストの水平方向の配置
ヘッダ セルのテキストの垂直方向の配置
ヘッダ セルを押されたボタンとして表示するかどうか
ヘッダ セルにフォーカスを設定するかどうか(ヘッダ セルをアクティブにするかどうか)
ヘッダ セルに表示するテキスト文字列
ボタンとして押された場合にヘッダ セルに表示するテキスト文字列
列ヘッダセル内でのボタンの配置。
ヘッダ内のボタン ピクチャに対するテキストの向き
必要に応じてテキストを複数行に折り返すかどうか
影の幅(ピクセル単位)。
影の暗い線部分の色
影の明るい線部分の色
ボタンが押されていないときに表示するピクチャ
ボタンが押されているときに表示するピクチャ
ヘッダ セルがロックされているかどうか
ホットキー接頭辞として下線を付ける文字
表示スタイル(XP テーマ)
マウスがヘッダの上に置かれているかどうか。
ヘッダ セルを右から左へ描画するかどうか
外観設定
テキストの回転角度
ヘッダセルの表示倍率を表す数値
列ヘッダ セルを描画します。
構文
'Declaration
 
Public Overloads Overrides Sub PaintHeader( _
   ByVal g As Graphics, _
   ByVal r As Rectangle, _
   ByVal rectTextIn As Rectangle, _
   ByVal backColor As Color, _
   ByVal foreColor As Color, _
   ByVal font As Font, _
   ByVal halign As HorizontalAlignment, _
   ByVal valign As VerticalAlignment, _
   ByVal pressed As Boolean, _
   ByVal focus As Boolean, _
   ByVal text As String, _
   ByVal textDown As String, _
   ByVal nAlign As ButtonTextAlign, _
   ByVal textOrientation As TextOrientation, _
   ByVal wordWrap As Boolean, _
   ByVal shadowSize As Integer, _
   ByVal darkColor As Color, _
   ByVal lightColor As Color, _
   ByVal pictUp As Image, _
   ByVal pictDown As Image, _
   ByVal bLocked As Boolean, _
   ByVal prefix As HotkeyPrefix, _
   ByVal style As VisualStyles, _
   ByVal mouseOver As Boolean, _
   ByVal rightToLeft As Boolean, _
   ByVal appearance As Appearance, _
   ByVal textRotationAngle As Double, _
   ByVal zoomFactor As Single _
) 
'使用法
 
Dim instance As BaseHeaderFlatStyleRenderer
Dim g As Graphics
Dim r As Rectangle
Dim rectTextIn As Rectangle
Dim backColor As Color
Dim foreColor As Color
Dim font As Font
Dim halign As HorizontalAlignment
Dim valign As VerticalAlignment
Dim pressed As Boolean
Dim focus As Boolean
Dim text As String
Dim textDown As String
Dim nAlign As ButtonTextAlign
Dim textOrientation As TextOrientation
Dim wordWrap As Boolean
Dim shadowSize As Integer
Dim darkColor As Color
Dim lightColor As Color
Dim pictUp As Image
Dim pictDown As Image
Dim bLocked As Boolean
Dim prefix As HotkeyPrefix
Dim style As VisualStyles
Dim mouseOver As Boolean
Dim rightToLeft As Boolean
Dim appearance As Appearance
Dim textRotationAngle As Double
Dim zoomFactor As Single
 
instance.PaintHeader(g, r, rectTextIn, backColor, foreColor, font, halign, valign, pressed, focus, text, textDown, nAlign, textOrientation, wordWrap, shadowSize, darkColor, lightColor, pictUp, pictDown, bLocked, prefix, style, mouseOver, rightToLeft, appearance, textRotationAngle, zoomFactor)

パラメータ

g
ヘッダ セルを描画するためのグラフィック デバイス インタフェース
r
ヘッダセルの境界を表す矩形領域の位置とサイズ。
rectTextIn
テキストの矩形領域
backColor
ヘッダ セルの背景色
foreColor
ヘッダ セルのテキスト色
font
ヘッダ セルのフォント
halign
ヘッダ セルのテキストの水平方向の配置
valign
ヘッダ セルのテキストの垂直方向の配置
pressed
ヘッダ セルを押されたボタンとして表示するかどうか
focus
ヘッダ セルにフォーカスを設定するかどうか(ヘッダ セルをアクティブにするかどうか)
text
ヘッダ セルに表示するテキスト文字列
textDown
ボタンとして押された場合にヘッダ セルに表示するテキスト文字列
nAlign
列ヘッダセル内でのボタンの配置。
textOrientation
ヘッダ内のボタン ピクチャに対するテキストの向き
wordWrap
必要に応じてテキストを複数行に折り返すかどうか
shadowSize
影の幅(ピクセル単位)。
darkColor
影の暗い線部分の色
lightColor
影の明るい線部分の色
pictUp
ボタンが押されていないときに表示するピクチャ
pictDown
ボタンが押されているときに表示するピクチャ
bLocked
ヘッダ セルがロックされているかどうか
prefix
ホットキー接頭辞として下線を付ける文字
style
表示スタイル(XP テーマ)
mouseOver
マウスがヘッダの上に置かれているかどうか。
rightToLeft
ヘッダ セルを右から左へ描画するかどうか
appearance
外観設定
textRotationAngle
テキストの回転角度
zoomFactor
ヘッダセルの表示倍率を表す数値
参照

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

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.