DoPaint(Graphics,Rectangle,String,Color,Color,Font,HorizontalAlignment,VerticalAlignment,LinkArea[],Color,Color,Picture,Boolean[],Boolean,Boolean,StringTrimming) Method
In This Topic
Paints the cell.
Syntax
'Declaration
Public Overloads Shared Sub DoPaint( _
ByVal As Graphics, _
ByVal As Rectangle, _
ByVal As String, _
ByVal As Color, _
ByVal As Color, _
ByVal As Font, _
ByVal As HorizontalAlignment, _
ByVal As VerticalAlignment, _
ByVal () As LinkArea, _
ByVal As Color, _
ByVal As Color, _
ByVal As Picture, _
ByVal () As Boolean, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As StringTrimming _
)
'Usage
Dim g As Graphics
Dim r As Rectangle
Dim text As String
Dim backColor As Color
Dim foreColor As Color
Dim font As Font
Dim horizontalAlignment As HorizontalAlignment
Dim verticalAlignment As VerticalAlignment
Dim areas() As LinkArea
Dim linkColor As Color
Dim visitedColor As Color
Dim pict As Picture
Dim visited() As Boolean
Dim bLocked As Boolean
Dim rightToLeft As Boolean
Dim trim As StringTrimming
FpHyperlink.DoPaint(g, r, text, backColor, foreColor, font, horizontalAlignment, verticalAlignment, areas, linkColor, visitedColor, pict, visited, bLocked, rightToLeft, trim)
public static void DoPaint(
Graphics ,
Rectangle ,
string ,
Color ,
Color ,
Font ,
HorizontalAlignment ,
VerticalAlignment ,
LinkArea[] ,
Color ,
Color ,
Picture ,
bool[] ,
bool ,
bool ,
StringTrimming
)
Parameters
- g
- GDI+ graphics surface
- r
- Image rectangle
- text
- Text of the hyperlink
- backColor
- Background color
- foreColor
- Foreground (text) color
- font
- Font of hyperlink text
- horizontalAlignment
- Horizontal alignment
- verticalAlignment
- Vertical alignment
- areas
- Areas that are hyperlinked
- linkColor
- Color of hyperlink
- visitedColor
- Color of the previously-visited hyperlink
- pict
- Picture (image)
- visited
- Whether the hyperlink has been clicked (visited) before
- bLocked
- Whether the control is locked
- rightToLeft
- Whether to set right to left
- trim
- StringTrimming setting
See Also