[]
        
(Showing Draft Content)

FarPoint.Win.FpCheckBox.GetPreferredSize

GetPreferredSize Method

GetPreferredSize(Graphics, Size, object, Font, string, string, string, string, CheckBoxPicture, ButtonTextAlign, bool, bool, HotkeyPrefix)

Calculates the height and width to display the text and picture in the check box.

Declaration
public static Size GetPreferredSize(Graphics g, Size size, object value, Font f, string textTrue, string textFalse, string textGray, string caption, CheckBoxPicture pict, ButtonTextAlign align, bool bKeyDown, bool bMouseDown, HotkeyPrefix prefix)
Public Shared Function GetPreferredSize(g As Graphics, size As Size, value As Object, f As Font, textTrue As String, textFalse As String, textGray As String, caption As String, pict As CheckBoxPicture, align As ButtonTextAlign, bKeyDown As Boolean, bMouseDown As Boolean, prefix As HotkeyPrefix) As Size
Parameters
Type Name Description
Graphics g

Graphics device interface for drawing; GDI+ graphics surface

Size size

Preferred or maximum needed size

object value

CheckState constant specifying the check box state, or null (or non-CheckState value) to use as the current state of the check box

Font f

Font for computing the height and width

string textTrue

String of text when the check box is checked (true)

string textFalse

String of text when the check box is unchecked (false)

string textGray

String of text when the check box is gray (indeterminate)

string caption

String of text if none of the other text values are set

CheckBoxPicture pict

Picture (image) for the check box

ButtonTextAlign align

Alignment of the text and check box

bool bKeyDown

Whether the key down

bool bMouseDown

Whether the mouse down

HotkeyPrefix prefix

Hotkey prefix

Returns
Type Description
Size