Method GetCheckBoxSize
GetCheckBoxSize(AbstractControl, CheckState, VisualControlState)
Gets default checkbox size.
public SizeD GetCheckBoxSize(AbstractControl control, CheckState checkState, VisualControlState controlState)
Parameters
controlAbstractControlControl where checkbox will be painted.
checkStateCheckStateCheck state.
controlStateVisualControlStateControl part state.
Returns
GetCheckBoxSize(AbstractControl, DrawFlags)
Returns the default size of a check box in dips.
public SizeD GetCheckBoxSize(AbstractControl control, WxControlPainterHandler.DrawFlags flags = DrawFlags.None)
Parameters
controlAbstractControlControl in which drawing will be performed.
flagsWxControlPainterHandler.DrawFlagsDrawing flags.
Returns
Remarks
The only acceptable flag is Cell which means that just the size of the checkbox itself is returned, without any margins that are included by default.