[]
        
(Showing Draft Content)

FarPoint.Win.FpProgress.DoPaint

DoPaint Method

DoPaint(Graphics, Rectangle, Color, Color, Font, int, int, int, ProgressOrientation, HorizontalAlignment, VerticalAlignment, Color, Color, bool, Picture, bool, ProgressStyle, VisualStyles, ProgressTextStyle, string, Color, LinearGradientMode, Picture, bool)

Paints the progress indicator.

Declaration
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)
Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, font As Font, value As Integer, minimum As Integer, maximum As Integer, orientation As ProgressOrientation, horizontalAlignment As HorizontalAlignment, verticalAlignment As VerticalAlignment, fillColor As Color, fillTextColor As Color, showText As Boolean, backgroundImage As Picture, locked As Boolean, style As ProgressStyle, visualStyles As VisualStyles, textStyle As ProgressTextStyle, textStr As String, fillColor2 As Color, gradMode As LinearGradientMode, picture As Picture, rightToLeft As Boolean)
Parameters
Type Name Description
Graphics g

GDI+ grphics surface

Rectangle r

Image rectangle

Color backColor

Background color of control

Color foreColor

Foreground (text) color of control

Font font

Font of the text

int value

Value of the control

int minimum

Minimum value of the progress indicator

int maximum

Maximum value of the progress indicator

ProgressOrientation orientation

Orientation of the progress indicator

HorizontalAlignment horizontalAlignment

Horizontal alignment of the progress indicator

VerticalAlignment verticalAlignment

Vertical alignment of the progress indicator

Color fillColor

Color of the fill of the progress indicator

Color fillTextColor

Color of text in the filled area of the progress indicator

bool showText

Whether to show the text

Picture backgroundImage

Background image

bool locked

Whether it is locked

ProgressStyle style

Type of display of the progress indicator

VisualStyles visualStyles

Visual styles (XP themes) setting

ProgressTextStyle textStyle

Progress indicator text style

string textStr

Progress indicator text string

Color fillColor2

Second color for a progress indicator if set to display a gradient

LinearGradientMode gradMode

Gradient style for a progress indicator if set to display a gradient

Picture picture

Image for a progress indicator if set to display a picture

bool rightToLeft

Specifies whether system is right to left

DoPaint(Graphics, Rectangle, Color, Color, Font, int, int, int, ProgressOrientation, HorizontalAlignment, VerticalAlignment, Color, Color, bool, Picture, bool, ProgressStyle, VisualStyles, ProgressTextStyle, string, Color, LinearGradientMode, Picture, bool, bool)

Paints the progress indicator.

Declaration
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)
Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, font As Font, value As Integer, minimum As Integer, maximum As Integer, orientation As ProgressOrientation, horizontalAlignment As HorizontalAlignment, verticalAlignment As VerticalAlignment, fillColor As Color, fillTextColor As Color, showText As Boolean, backgroundImage As Picture, locked As Boolean, style As ProgressStyle, visualStyles As VisualStyles, textStyle As ProgressTextStyle, textStr As String, fillColor2 As Color, gradMode As LinearGradientMode, picture As Picture, rightToLeft As Boolean, validValue As Boolean)
Parameters
Type Name Description
Graphics g

GDI+ grphics surface

Rectangle r

Image rectangle

Color backColor

Background color of control

Color foreColor

Foreground (text) color of control

Font font

Font of the text

int value

Value of the control

int minimum

Minimum value of the progress indicator

int maximum

Maximum value of the progress indicator

ProgressOrientation orientation

Orientation of the progress indicator

HorizontalAlignment horizontalAlignment

Horizontal alignment of the progress indicator

VerticalAlignment verticalAlignment

Vertical alignment of the progress indicator

Color fillColor

Color of the fill of the progress indicator

Color fillTextColor

Color of text in the filled area of the progress indicator

bool showText

Whether to show the text

Picture backgroundImage

Background image

bool locked

Whether it is locked

ProgressStyle style

Type of display of the progress indicator

VisualStyles visualStyles

Visual styles (XP themes) setting

ProgressTextStyle textStyle

Progress indicator text style

string textStr

Progress indicator text string

Color fillColor2

Second color for a progress indicator if set to display a gradient

LinearGradientMode gradMode

Gradient style for a progress indicator if set to display a gradient

Picture picture

Image for a progress indicator if set to display a picture

bool rightToLeft

Specifies whether system is right to left

bool validValue

Specifies whether value is valid or not

DoPaint(Graphics, Rectangle, Color, Color, Font, int, int, int, ProgressOrientation, HorizontalAlignment, VerticalAlignment, Color, Color, bool, Picture, bool, ProgressStyle, VisualStyles, ProgressTextStyle, string, Color, LinearGradientMode, Picture, bool, bool, bool)

Paints the progress indicator.

Declaration
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)
Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, font As Font, value As Integer, minimum As Integer, maximum As Integer, orientation As ProgressOrientation, horizontalAlignment As HorizontalAlignment, verticalAlignment As VerticalAlignment, fillColor As Color, fillTextColor As Color, showText As Boolean, backgroundImage As Picture, locked As Boolean, style As ProgressStyle, visualStyles As VisualStyles, textStyle As ProgressTextStyle, textStr As String, fillColor2 As Color, gradMode As LinearGradientMode, picture As Picture, rightToLeft As Boolean, validValue As Boolean, isGrayScale As Boolean)
Parameters
Type Name Description
Graphics g

GDI+ grphics surface

Rectangle r

Image rectangle

Color backColor

Background color of control

Color foreColor

Foreground (text) color of control

Font font

Font of the text

int value

Value of the control

int minimum

Minimum value of the progress indicator

int maximum

Maximum value of the progress indicator

ProgressOrientation orientation

Orientation of the progress indicator

HorizontalAlignment horizontalAlignment

Horizontal alignment of the progress indicator

VerticalAlignment verticalAlignment

Vertical alignment of the progress indicator

Color fillColor

Color of the fill of the progress indicator

Color fillTextColor

Color of text in the filled area of the progress indicator

bool showText

Whether to show the text

Picture backgroundImage

Background image

bool locked

Whether it is locked

ProgressStyle style

Type of display of the progress indicator

VisualStyles visualStyles

Visual styles (XP themes) setting

ProgressTextStyle textStyle

Progress indicator text style

string textStr

Progress indicator text string

Color fillColor2

Second color for a progress indicator if set to display a gradient

LinearGradientMode gradMode

Gradient style for a progress indicator if set to display a gradient

Picture picture

Image for a progress indicator if set to display a picture

bool rightToLeft

Specifies whether system is right to left

bool validValue

Specifies whether value is valid or not

bool isGrayScale

Whether painting in grayscale mode