Paints the corner cell.
Syntax
'Declaration
Public Overrides Sub PaintCorner( _
ByVal As Graphics, _
ByVal As Rectangle, _
ByVal As Color, _
ByVal As Color, _
ByVal As Font, _
ByVal As HorizontalAlignment, _
ByVal As VerticalAlignment, _
ByVal As String, _
ByVal As TextOrientation, _
ByVal As Boolean, _
ByVal As HotkeyPrefix, _
ByVal As StringTrimming, _
ByVal As VisualStyles, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Single _
)
'Usage
Dim instance As FlatCornerHeaderRenderer
Dim g As Graphics
Dim r As Rectangle
Dim backColor As Color
Dim foreColor As Color
Dim f As Font
Dim horizontalAlignment As HorizontalAlignment
Dim verticalAlignment As VerticalAlignment
Dim s As String
Dim textOrientation As TextOrientation
Dim wordWrap As Boolean
Dim hotkeyPrefix As HotkeyPrefix
Dim stringTrim As StringTrimming
Dim visualStyles As VisualStyles
Dim mouseOver As Boolean
Dim rightToLeft As Boolean
Dim zoomFactor As Single
instance.PaintCorner(g, r, backColor, foreColor, f, horizontalAlignment, verticalAlignment, s, textOrientation, wordWrap, hotkeyPrefix, stringTrim, visualStyles, mouseOver, rightToLeft, zoomFactor)
public override void PaintCorner(
Graphics ,
Rectangle ,
Color ,
Color ,
Font ,
HorizontalAlignment ,
VerticalAlignment ,
string ,
TextOrientation ,
bool ,
HotkeyPrefix ,
StringTrimming ,
VisualStyles ,
bool ,
bool ,
float
)
Parameters
- g
- Graphics device interface for painting the corner cell
- r
- Location and size of a rectangular region for painting the corner cell
- backColor
- Background color of the corner cell
- foreColor
- Foreground color of the corner cell
- f
- Font
- horizontalAlignment
- Horizontal alignment of corner cell content
- verticalAlignment
- Vertical alignment of the corner cell content
- s
- String to paint
- textOrientation
- Orientation of the text
- wordWrap
- Whether to wrap words to multiple lines
- hotkeyPrefix
- Whether to show hotkey effects
- stringTrim
- String trimming mode
- visualStyles
- Visual styles
- mouseOver
- Whether the mouse is over the corner cell
- rightToLeft
- Whether to display right to left
- zoomFactor
- Numeric value for scaling the display of the corner cell
See Also