'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, _ ByVal validValue As Boolean, _ ByVal isGrayScale 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 Dim validValue As Boolean Dim isGrayScale 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, validValue, isGrayScale)
public static void DoPaint( Graphics g, Rectangle r, Color backColor, Color foreColor, Font font, int value, int minimum, int maximum, ProgressOrientation orientation, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color fillColor, Color fillTextColor, bool showText, Picture backgroundImage, bool locked, ProgressStyle style, VisualStyles visualStyles, ProgressTextStyle textStyle, string textStr, Color fillColor2, LinearGradientMode gradMode, Picture picture, bool rightToLeft, bool validValue, bool isGrayScale )
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
- validValue
- Specifies whether value is valid or not
- isGrayScale
- Whether painting in grayscale mode