[]
Paints the header cell with the look and feel of Excel 2007.
public override 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)
Public Overrides Sub PaintHeader(g As Graphics, r As Rectangle, rectTextIn As Rectangle, backColor As Color, foreColor As Color, font As Font, halign As HorizontalAlignment, valign As VerticalAlignment, pressed As Boolean, focus As Boolean, text As String, textDown As String, nAlign As ButtonTextAlign, textOrientation As TextOrientation, wordWrap As Boolean, shadowSize As Integer, darkColor As Color, lightColor As Color, pictUp As Image, pictDown As Image, bLocked As Boolean, prefix As HotkeyPrefix, style As VisualStyles, mouseOver As Boolean, rightToLeft As Boolean, appearance As Appearance, textRotationAngle As Double)
Type | Name | Description |
---|---|---|
Graphics | g | Graphics device interface for painting the header cell |
Rectangle | r | Location and size of a rectangular region |
Rectangle | rectTextIn | Rectangular region for the text |
Color | backColor | Cell's backcolor |
Color | foreColor | Color of the text |
Font | font | Font of the text |
HorizontalAlignment | halign | Horizontal alignment of the text |
VerticalAlignment | valign | Vertical alignment of the text |
bool | pressed | State of the header being pressed |
bool | focus | Whether in focus |
string | text | Text to display in the header |
string | textDown | Text to display in the header when pressed |
ButtonTextAlign | nAlign | Alignment of the text and image |
TextOrientation | textOrientation | Orientation of the text with respect to the button picture in the header |
bool | wordWrap | Whether to wrap text to multiple lines |
int | shadowSize | Size of the shadow |
Color | darkColor | Dark color |
Color | lightColor | Light color |
Image | pictUp | Picture to display when the button is not pressed |
Image | pictDown | Picture to display when the button is pressed |
bool | bLocked | Whether the button is locked |
HotkeyPrefix | prefix | Letter to underline as a hotkey prefix |
VisualStyles | style | Visual styles |
bool | mouseOver | Whether the mouse is over the cell |
bool | rightToLeft | Whether drawing right to left |
Appearance | appearance | Appearance settings of the header cell |
double | textRotationAngle | Text rotation angle |
Paints the header cell with the look and feel of Excel 2007.
public override 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)
Public Overrides Sub PaintHeader(g As Graphics, r As Rectangle, rectTextIn As Rectangle, backColor As Color, foreColor As Color, font As Font, halign As HorizontalAlignment, valign As VerticalAlignment, pressed As Boolean, focus As Boolean, text As String, textDown As String, nAlign As ButtonTextAlign, textOrientation As TextOrientation, wordWrap As Boolean, shadowSize As Integer, darkColor As Color, lightColor As Color, pictUp As Image, pictDown As Image, bLocked As Boolean, prefix As HotkeyPrefix, style As VisualStyles, mouseOver As Boolean, rightToLeft As Boolean, appearance As Appearance, textRotationAngle As Double, zoomFactor As Single)
Type | Name | Description |
---|---|---|
Graphics | g | Graphics device interface for painting the header cell |
Rectangle | r | Location and size of a rectangular region |
Rectangle | rectTextIn | Rectangular region for the text |
Color | backColor | Cell's backcolor |
Color | foreColor | Color of the text |
Font | font | Font of the text |
HorizontalAlignment | halign | Horizontal alignment of the text |
VerticalAlignment | valign | Vertical alignment of the text |
bool | pressed | State of the header being pressed |
bool | focus | Whether in focus |
string | text | Text to display in the header |
string | textDown | Text to display in the header when pressed |
ButtonTextAlign | nAlign | Alignment of the text and image |
TextOrientation | textOrientation | Orientation of the text with respect to the button picture in the header |
bool | wordWrap | Whether to wrap text to multiple lines |
int | shadowSize | Size of the shadow |
Color | darkColor | Dark color |
Color | lightColor | Light color |
Image | pictUp | Picture to display when the button is not pressed |
Image | pictDown | Picture to display when the button is pressed |
bool | bLocked | Whether the button is locked |
HotkeyPrefix | prefix | Letter to underline as a hotkey prefix |
VisualStyles | style | Visual styles |
bool | mouseOver | Whether the mouse is over the cell |
bool | rightToLeft | Whether drawing right to left |
Appearance | appearance | Appearance settings of the header cell |
double | textRotationAngle | Text rotation angle |
float | zoomFactor | Numeric value for scaling the display of the header cells |