Spread Windows Forms 6.0 Product Documentation
GetPreferredSize(Graphics,Font,Int32,Int32,Int32,ProgressOrientation) Method
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > FpProgress Class > GetPreferredSize Method : GetPreferredSize(Graphics,Font,Int32,Int32,Int32,ProgressOrientation) Method


g
GDI+ graphics surface
font
Font of text
value
Value
minimum
Minimum allowed value
maximum
Maximum allowed value
orientation
Orientation of the progress indicator

Glossary Item Box

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

Syntax

Visual Basic (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 _
) As Size
Visual Basic (Usage)Copy Code
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)
C# 
public static Size GetPreferredSize( 
   Graphics g,
   Font font,
   int value,
   int minimum,
   int maximum,
   ProgressOrientation orientation
)

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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.