Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / FpProgress Class / DoPaint Method / DoPaint(Graphics,Rectangle,Color,Color,Font,Int32,Int32,Int32,ProgressOrientation,HorizontalAlignment,VerticalAlignment,Color,Color,Boolean,Picture,Boolean,ProgressStyle,VisualStyles,ProgressTextStyle,String,Color,LinearGradientMode,Picture,Boolean) Method
GDI+ grphics surface
Image rectangle
Background color of control
Foreground (text) color of control
Font of the text
Value of the control
Minimum value of the progress indicator
Maximum value of the progress indicator
Orientation of the progress indicator
Horizontal alignment of the progress indicator
Vertical alignment of the progress indicator
Color of the fill of the progress indicator
Color of text in the filled area of the progress indicator
Whether to show the text
Background image
Whether it is locked
Type of display of the progress indicator
Visual styles (XP themes) setting
Progress indicator text style
Progress indicator text string
Second color for a progress indicator if set to display a gradient
Gradient style for a progress indicator if set to display a gradient
Image for a progress indicator if set to display a picture
Specifies whether system is right to left


In This Topic
    DoPaint(Graphics,Rectangle,Color,Color,Font,Int32,Int32,Int32,ProgressOrientation,HorizontalAlignment,VerticalAlignment,Color,Color,Boolean,Picture,Boolean,ProgressStyle,VisualStyles,ProgressTextStyle,String,Color,LinearGradientMode,Picture,Boolean) Method
    In This Topic
    Paints the progress indicator.
    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 value As Integer, _
       ByVal minimum As Integer, _
       ByVal maximum As Integer, _
       ByVal orientation As ProgressOrientation, _
       ByVal horizontalAlignment As HorizontalAlignment, _
       ByVal verticalAlignment As VerticalAlignment, _
       ByVal fillColor As Color, _
       ByVal fillTextColor As Color, _
       ByVal showText As Boolean, _
       ByVal backgroundImage As Picture, _
       ByVal locked As Boolean, _
       ByVal style As ProgressStyle, _
       ByVal visualStyles As VisualStyles, _
       ByVal textStyle As ProgressTextStyle, _
       ByVal textStr As String, _
       ByVal fillColor2 As Color, _
       ByVal gradMode As LinearGradientMode, _
       ByVal picture As Picture, _
       ByVal rightToLeft As Boolean _
    ) 
    'Usage
     
    
    Dim g As Graphics
    Dim r As Rectangle
    Dim backColor As Color
    Dim foreColor As Color
    Dim font As Font
    Dim value As Integer
    Dim minimum As Integer
    Dim maximum As Integer
    Dim orientation As ProgressOrientation
    Dim horizontalAlignment As HorizontalAlignment
    Dim verticalAlignment As VerticalAlignment
    Dim fillColor As Color
    Dim fillTextColor As Color
    Dim showText As Boolean
    Dim backgroundImage As Picture
    Dim locked As Boolean
    Dim style As ProgressStyle
    Dim visualStyles As VisualStyles
    Dim textStyle As ProgressTextStyle
    Dim textStr As String
    Dim fillColor2 As Color
    Dim gradMode As LinearGradientMode
    Dim picture As Picture
    Dim rightToLeft As Boolean
     
    FpProgress.DoPaint(g, r, backColor, foreColor, font, value, minimum, maximum, orientation, horizontalAlignment, verticalAlignment, fillColor, fillTextColor, showText, backgroundImage, locked, style, visualStyles, textStyle, textStr, fillColor2, gradMode, picture, rightToLeft)

    Parameters

    g
    GDI+ grphics surface
    r
    Image rectangle
    backColor
    Background color of control
    foreColor
    Foreground (text) color of control
    font
    Font of the text
    value
    Value of the control
    minimum
    Minimum value of the progress indicator
    maximum
    Maximum value of the progress indicator
    orientation
    Orientation of the progress indicator
    horizontalAlignment
    Horizontal alignment of the progress indicator
    verticalAlignment
    Vertical alignment of the progress indicator
    fillColor
    Color of the fill of the progress indicator
    fillTextColor
    Color of text in the filled area of the progress indicator
    showText
    Whether to show the text
    backgroundImage
    Background image
    locked
    Whether it is locked
    style
    Type of display of the progress indicator
    visualStyles
    Visual styles (XP themes) setting
    textStyle
    Progress indicator text style
    textStr
    Progress indicator text string
    fillColor2
    Second color for a progress indicator if set to display a gradient
    gradMode
    Gradient style for a progress indicator if set to display a gradient
    picture
    Image for a progress indicator if set to display a picture
    rightToLeft
    Specifies whether system is right to left
    See Also