Spread Windows Forms 12.0 Product Documentation
GetPreferredSize(FpButtonPaintArgs) Method


FarPoint.Win Assembly > FarPoint.Win Namespace > FpButton Class > GetPreferredSize Method : GetPreferredSize(FpButtonPaintArgs) Method
The arguments for getting preferred size. NOTE: Just listed arguments here affect to the result args.g, args.r.Size, args.font, args.text, args.textDown, args.nAlign, args.halign, args.valign, args.textOrientation, args.wordWrap, args.shadowSize, args.pictUp, args.pictDown, args.prefix, args.txtRotationAngle, args.rightToLeft, args.pressed, args.getPreferredSizeDirection
Calculates the height and width required to display the button text and picture.
Syntax
'Declaration
 
Public Overloads Shared Function GetPreferredSize( _
   ByVal args As FpButtonPaintArgs _
) As Size
'Usage
 
Dim args As FpButtonPaintArgs
Dim value As Size
 
value = FpButton.GetPreferredSize(args)
public static Size GetPreferredSize( 
   FpButtonPaintArgs args
)

Parameters

args
The arguments for getting preferred size. NOTE: Just listed arguments here affect to the result args.g, args.r.Size, args.font, args.text, args.textDown, args.nAlign, args.halign, args.valign, args.textOrientation, args.wordWrap, args.shadowSize, args.pictUp, args.pictDown, args.prefix, args.txtRotationAngle, args.rightToLeft, args.pressed, args.getPreferredSizeDirection
See Also

Reference

FpButton Class
FpButton Members
Overload List