[]
        
(Showing Draft Content)

FarPoint.Win.FpMultiOption.GetPreferredSize

GetPreferredSize Method

GetPreferredSize(Graphics, Font, ButtonTextAlign, RadioOrientation, RadioPicture, ArrayList)

Calculates the height and width required to display the text and picture (of the option buttons) in the control with default width and height.

Declaration
public static Size GetPreferredSize(Graphics g, Font font, ButtonTextAlign nAlign, RadioOrientation nOrientation, RadioPicture radioPicture, ArrayList radioList)
Public Shared Function GetPreferredSize(g As Graphics, font As Font, nAlign As ButtonTextAlign, nOrientation As RadioOrientation, radioPicture As RadioPicture, radioList As ArrayList) As Size
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

Font font

Font

ButtonTextAlign nAlign

Alignment of text

RadioOrientation nOrientation

Orientation (vertical or horizontal) of list of option buttons

RadioPicture radioPicture

Picture (image) for the option buttons

ArrayList radioList

Array of list of options

Returns
Type Description
Size

An ordered pair of type Size representing the width and height.

GetPreferredSize(Graphics, Font, ButtonTextAlign, RadioOrientation, RadioPicture, ArrayList, int, int, bool)

Calculates the height and width required to display the text and picture (of the option buttons) in the control.

Declaration
public static Size GetPreferredSize(Graphics g, Font font, ButtonTextAlign nAlign, RadioOrientation nOrientation, RadioPicture radioPicture, ArrayList radioList, int pictWidth, int pictHeight, bool compact = false)
Public Shared Function GetPreferredSize(g As Graphics, font As Font, nAlign As ButtonTextAlign, nOrientation As RadioOrientation, radioPicture As RadioPicture, radioList As ArrayList, pictWidth As Integer, pictHeight As Integer, Optional compact As Boolean = False) As Size
Parameters
Type Name Description
Graphics g

GDI+ graphics surface

Font font

Font

ButtonTextAlign nAlign

Alignment of text

RadioOrientation nOrientation

Orientation (vertical or horizontal) of list of option buttons

RadioPicture radioPicture

Picture (image) for the option buttons

ArrayList radioList

Array of list of options

int pictWidth

Width of picture for the option buttons

int pictHeight

Height of picture for the option buttons

bool compact

Indicating whether the button shows in compact mode

Returns
Type Description
Size

An ordered pair of type Size representing the width and height.