Spread Windows Forms 10.0 Product Documentation
GetPreferredSize(Graphics,Font,Int32,Int32,Int32,ProgressOrientation,ProgressTextStyle,String) Method


GDI+ graphics surface
Font of text
Value
Minimum allowed value
Maximum allowed value
Orientation of the progress indicator
Determines what to display as the text
Text string to display
Calculates the height and width required to display the text and picture in the progress indicator.
Syntax
'Declaration
 
Public Overloads Shared Function GetPreferredSize( _
   ByVal g As Graphics, _
   ByVal font As Font, _
   ByVal value As Integer, _
   ByVal minimum As Integer, _
   ByVal maximum As Integer, _
   ByVal orientation As ProgressOrientation, _
   ByVal textStyle As ProgressTextStyle, _
   ByVal textStr As String _
) 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 textStyle As ProgressTextStyle
Dim textStr As String
Dim value As Size
 
value = FpProgress.GetPreferredSize(g, font, value, minimum, maximum, orientation, textStyle, textStr)
public static Size GetPreferredSize( 
   Graphics g,
   Font font,
   int value,
   int minimum,
   int maximum,
   ProgressOrientation orientation,
   ProgressTextStyle textStyle,
   string textStr
)

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
textStyle
Determines what to display as the text
textStr
Text string to display
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

FpProgress Class
FpProgress Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.