Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / FpColorPicker Class / DoPaint Method / DoPaint(Graphics,Rectangle,Color,Color,Font,Color,String,HorizontalAlignment,VerticalAlignment,ColorPickerStyle,UnknownTextStyle,String,Boolean,Int32) Method
Graphics device interface for painting the cell
Location and size of a rectangular region
Background color
Text (foreground) color
Font
Color
Caption text
Horizontal alignment
Vertical alignment
Style
Text Style
Text for unknown color
Whether right to left orientation
Width of the box in pixels


In This Topic
    DoPaint(Graphics,Rectangle,Color,Color,Font,Color,String,HorizontalAlignment,VerticalAlignment,ColorPickerStyle,UnknownTextStyle,String,Boolean,Int32) Method
    In This Topic
    Paints the cell.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub DoPaint( _
       ByVal g As Graphics, _
       ByVal r As Rectangle, _
       ByVal backColor As Color, _
       ByVal foreColor As Color, _
       ByVal font As Font, _
       ByVal c As Color, _
       ByVal caption As String, _
       ByVal horizontalAlignment As HorizontalAlignment, _
       ByVal verticalAlignment As VerticalAlignment, _
       ByVal style As ColorPickerStyle, _
       ByVal textStyle As UnknownTextStyle, _
       ByVal unknownText As String, _
       ByVal rightToLeft As Boolean, _
       ByVal boxWidth As Integer _
    ) 
    'Usage
     
    
    Dim g As Graphics
    Dim r As Rectangle
    Dim backColor As Color
    Dim foreColor As Color
    Dim font As Font
    Dim c As Color
    Dim caption As String
    Dim horizontalAlignment As HorizontalAlignment
    Dim verticalAlignment As VerticalAlignment
    Dim style As ColorPickerStyle
    Dim textStyle As UnknownTextStyle
    Dim unknownText As String
    Dim rightToLeft As Boolean
    Dim boxWidth As Integer
     
    FpColorPicker.DoPaint(g, r, backColor, foreColor, font, c, caption, horizontalAlignment, verticalAlignment, style, textStyle, unknownText, rightToLeft, boxWidth)

    Parameters

    g
    Graphics device interface for painting the cell
    r
    Location and size of a rectangular region
    backColor
    Background color
    foreColor
    Text (foreground) color
    font
    Font
    c
    Color
    caption
    Caption text
    horizontalAlignment
    Horizontal alignment
    verticalAlignment
    Vertical alignment
    style
    Style
    textStyle
    Text Style
    unknownText
    Text for unknown color
    rightToLeft
    Whether right to left orientation
    boxWidth
    Width of the box in pixels
    See Also