GetPreferredSize(Graphics,Font,ButtonTextAlign,RadioOrientation,RadioPicture,ArrayList,Int32,Int32) Method
In This Topic
Calculates the height and width required to display the text and picture (of the option buttons) in the control.
Syntax
'Declaration
Public Overloads Shared Function GetPreferredSize( _
ByVal As Graphics, _
ByVal As Font, _
ByVal As ButtonTextAlign, _
ByVal As RadioOrientation, _
ByVal As RadioPicture, _
ByVal As ArrayList, _
ByVal As Integer, _
ByVal As Integer _
) As Size
'Usage
Dim g As Graphics
Dim font As Font
Dim nAlign As ButtonTextAlign
Dim nOrientation As RadioOrientation
Dim radioPicture As RadioPicture
Dim radioList As ArrayList
Dim pictWidth As Integer
Dim pictHeight As Integer
Dim value As Size
value = FpMultiOption.GetPreferredSize(g, font, nAlign, nOrientation, radioPicture, radioList, pictWidth, pictHeight)
Parameters
- g
- GDI+ graphics surface
- font
- Font
- nAlign
- Alignment of text
- nOrientation
- Orientation (vertical or horizontal) of list of option buttons
- radioPicture
- Picture (image) for the option buttons
- radioList
- Array of list of options
- pictWidth
- Width of picture for the option buttons
- pictHeight
- Height of picture for the option buttons
See Also