Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Function GetPreferredSize( _ ByVal g As Graphics, _ ByVal font As Font, _ ByVal nAlign As ButtonTextAlign, _ ByVal nOrientation As RadioOrientation, _ ByVal radioPicture As RadioPicture, _ ByVal radioList As ArrayList _ ) As Size |
Visual Basic (Usage) | Copy Code |
---|---|
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 value As Size value = FpMultiOption.GetPreferredSize(g, font, nAlign, nOrientation, radioPicture, radioList) |
C# | |
---|---|
public static Size GetPreferredSize( Graphics g, Font font, ButtonTextAlign nAlign, RadioOrientation nOrientation, RadioPicture radioPicture, ArrayList radioList ) |
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
Return Value
Size object containing the size of the controlTarget Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2