[]
        
(Showing Draft Content)

FarPoint.Win.FpProgress.GetPreferredSize

GetPreferredSize Method

GetPreferredSize(Graphics, Font, int, int, int, ProgressOrientation)

Calculates the height and width required to display the text and picture in the progress indicator.

Declaration
public static Size GetPreferredSize(Graphics g, Font font, int value, int minimum, int maximum, ProgressOrientation orientation)
Public Shared Function GetPreferredSize(g As Graphics, font As Font, value As Integer, minimum As Integer, maximum As Integer, orientation As ProgressOrientation) As Size
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

Font font

Font of text

int value

Value

int minimum

Minimum allowed value

int maximum

Maximum allowed value

ProgressOrientation orientation

Orientation of the progress indicator

Returns
Type Description
Size

An ordered pair of type Size representing the width and height.

GetPreferredSize(Graphics, Font, int, int, int, ProgressOrientation, ProgressTextStyle, string)

Calculates the height and width required to display the text and picture in the progress indicator.

Declaration
public static Size GetPreferredSize(Graphics g, Font font, int value, int minimum, int maximum, ProgressOrientation orientation, ProgressTextStyle textStyle, string textStr)
Public Shared Function GetPreferredSize(g As Graphics, font As Font, value As Integer, minimum As Integer, maximum As Integer, orientation As ProgressOrientation, textStyle As ProgressTextStyle, textStr As String) As Size
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

Font font

Font of text

int value

Value

int minimum

Minimum allowed value

int maximum

Maximum allowed value

ProgressOrientation orientation

Orientation of the progress indicator

ProgressTextStyle textStyle

Determines what to display as the text

string textStr

Text string to display

Returns
Type Description
Size

An ordered pair of type Size representing the width and height.