'Declaration
Public Overloads Overridable 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 _ )
'Usage
Dim instance As RowHeaderRenderer 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)
public virtual void PaintHeader( Graphics g, Rectangle r, Rectangle rectTextIn, Color backColor, Color foreColor, Font font, HorizontalAlignment halign, VerticalAlignment valign, bool pressed, bool focus, string text, string textDown, ButtonTextAlign nAlign, TextOrientation textOrientation, bool wordWrap, int shadowSize, Color darkColor, Color lightColor, Image pictUp, Image pictDown, bool bLocked, HotkeyPrefix prefix, VisualStyles style, bool mouseOver, bool rightToLeft, Appearance appearance, double textRotationAngle, float zoomFactor )
Parameters
- g
- Graphics device interface for painting the header cell
- r
- Location and size of a rectangular region around the header cell
- rectTextIn
- Rectangular region for the text
- backColor
- Background color for the header cell
- foreColor
- Text color for the header cell
- font
- Font for the header cell
- halign
- Horizontal alignment of text in the header cell
- valign
- Vertical alignment of text in the header cell
- pressed
- Whether the header cell appears as a pressed button
- focus
- Whether the header cell has the focus (is active)
- text
- Text string to appear in the header cell
- textDown
- Text string to appear in the header cell if it is pressed (as a button)
- nAlign
- Alignment of the button in the column header cell
- textOrientation
- Orientation of the text with respect to the button picture in the header
- wordWrap
- Whether the text wraps to multiple lines if needed
- shadowSize
- Shadow thickness in pixels
- darkColor
- Color for the dark line part of the shadow
- lightColor
- Color for the light line part of the shadow
- pictUp
- Picture to display when the button is not pressed
- pictDown
- Picture to display when the button is pressed
- bLocked
- Whether the header cell is locked
- prefix
- Letter to underline as a hotkey prefix
- style
- Visual style (XP theme)
- mouseOver
- Whether the mouse is over the header
- rightToLeft
- Whether to draw the header cell with a right-to-left orientation
- appearance
- Appearance settings
- textRotationAngle
- Text rotation angle
- zoomFactor
- Numeric value for scaling the display of the header cells