[]
Calculates the height and width required to display the text and picture in the progress indicator.
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
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 |
Type | Description |
---|---|
Size | An ordered pair of type Size representing the width and height. |
Calculates the height and width required to display the text and picture in the progress indicator.
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
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 |
Type | Description |
---|---|
Size | An ordered pair of type Size representing the width and height. |