Spread Windows Forms 10.0 Product Documentation
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
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

FpButton Class
FpButton Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.