Calculates the height and width required to display the button text and picture.
Syntax
'Declaration
Public Overloads Shared Function GetPreferredSize( _
ByVal As FpButtonPaintArgs _
) As Size
'Usage
Dim args As FpButtonPaintArgs
Dim value As Size
value = FpButton.GetPreferredSize(args)
public static Size GetPreferredSize(
FpButtonPaintArgs
)
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