'Declaration
Public Overloads Shared Function GetPreferredSize( _
ByVal As Graphics, _
ByVal As Font, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As ProgressOrientation, _
ByVal As ProgressTextStyle, _
ByVal As String _
) As Size
'使用法
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 textStyle As ProgressTextStyle
Dim textStr As String
Dim value As Size
value = FpProgress.GetPreferredSize(g, font, value, minimum, maximum, orientation, textStyle, textStr)