'Declaration
Public Overloads Sub DrawHeader( _ ByVal g As Graphics, _ ByVal r As Rectangle, _ ByVal rectTextIn As Rectangle, _ ByVal topColor As Color, _ ByVal bottomColor As Color, _ ByVal activeTopColor As Color, _ ByVal activeBottomColor As Color, _ ByVal mode As LinearGradientMode, _ ByVal foreColor As Color, _ ByVal font As Font, _ ByVal halign As HorizontalAlignment, _ ByVal valign As VerticalAlignment, _ ByVal pressed 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 appearance As Appearance, _ ByVal zoomFactor As Single _ )
'Usage
Dim instance As GradientHeaderRenderer Dim g As Graphics Dim r As Rectangle Dim rectTextIn As Rectangle Dim topColor As Color Dim bottomColor As Color Dim activeTopColor As Color Dim activeBottomColor As Color Dim mode As LinearGradientMode Dim foreColor As Color Dim font As Font Dim halign As HorizontalAlignment Dim valign As VerticalAlignment Dim pressed 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 appearance As Appearance Dim zoomFactor As Single instance.DrawHeader(g, r, rectTextIn, topColor, bottomColor, activeTopColor, activeBottomColor, mode, foreColor, font, halign, valign, pressed, text, textDown, nAlign, textOrientation, wordWrap, shadowSize, darkColor, lightColor, pictUp, pictDown, bLocked, prefix, appearance, zoomFactor)
public void DrawHeader( Graphics g, Rectangle r, Rectangle rectTextIn, Color topColor, Color bottomColor, Color activeTopColor, Color activeBottomColor, LinearGradientMode mode, Color foreColor, Font font, HorizontalAlignment halign, VerticalAlignment valign, bool pressed, string text, string textDown, ButtonTextAlign nAlign, TextOrientation textOrientation, bool wordWrap, int shadowSize, Color darkColor, Color lightColor, Image pictUp, Image pictDown, bool bLocked, HotkeyPrefix prefix, Appearance appearance, float zoomFactor )
Parameters
- g
- Graphics device interface for painting the header cell
- r
- Location and size of a rectangular region
- rectTextIn
- Rectangular region for the text
- topColor
- Color at the top of the gradient
- bottomColor
- Color at the bottom of the gradient
- activeTopColor
- Color at the top of the gradient when active
- activeBottomColor
- Color at the bottom of the gradient when active
- mode
- Mode of the linear gradient
- foreColor
- Color of the text
- font
- Font of the text
- halign
- Horizontal alignment of the text
- valign
- Vertical alignment of the text
- pressed
- State of the header being pressed
- text
- Text to display in the header
- textDown
- Text to display in the header when pressed
- nAlign
- Alignment of the text
- textOrientation
- Orientation of the text with respect to the button picture in the header
- wordWrap
- Whether to wrap text to multiple lines
- shadowSize
- Size in pixels of the shadow
- darkColor
- Dark color
- lightColor
- Light color
- pictUp
- Picture to display when the button is not pressed
- pictDown
- Picture to display when the button is pressed
- bLocked
- Whether the button is locked
- prefix
- Letter to underline as a hotkey prefix
- appearance
- Appearance settings of the header cell
- zoomFactor
- Numeric value for scaling the display of the header cells