[]
Calculates the height and width required to display the text and picture (of the option buttons) in the control with default width and height.
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
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 |
Type | Description |
---|---|
Size | An ordered pair of type Size representing the width and height. |
Calculates the height and width required to display the text and picture (of the option buttons) in the control.
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
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 |
Type | Description |
---|---|
Size | An ordered pair of type Size representing the width and height. |