Method GetCheckBoxSize
GetCheckBoxSize(AbstractControl, CheckState, VisualControlState)
Gets default checkbox size.
public SizeD GetCheckBoxSize(AbstractControl control, CheckState checkState, VisualControlState controlState)
Parameters
control
AbstractControlControl where checkbox will be painted.
checkState
CheckStateCheck state.
controlState
VisualControlStateControl 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
control
AbstractControlControl in which drawing will be performed.
flags
WxControlPainterHandler.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.