Calculates the height and width required to display the text and picture in the progress indicator.
Syntax
'Declaration
Public Overloads Shared Function GetPreferredSize( _
ByVal As Graphics, _
ByVal As Font, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As ProgressOrientation _
) As Size
'Usage
Dim g As Graphics
Dim font As Font
Dim value As Integer
Dim minimum As Integer
Dim maximum As Integer
Dim orientation As ProgressOrientation
Dim value As Size
value = FpProgress.GetPreferredSize(g, font, value, minimum, maximum, orientation)
public static Size GetPreferredSize(
Graphics ,
Font ,
int ,
int ,
int ,
ProgressOrientation
)
Parameters
- g
- GDI+ graphics surface
- font
- Font of text
- value
- Value
- minimum
- Minimum allowed value
- maximum
- Maximum allowed value
- orientation
- Orientation of the progress indicator
See Also