Method GetCheckBoxSize
GetCheckBoxSize(Control, CheckState, VisualControlState)
Gets default checkbox size.
public SizeD GetCheckBoxSize(Control control, CheckState checkState, VisualControlState controlState)
Parameters
control
ControlControl where checkbox will be painted.
checkState
CheckStateCheck state.
controlState
VisualControlStateControl part state.
Returns
GetCheckBoxSize(Control, DrawFlags)
Returns the default size of a check box in dips.
public SizeD GetCheckBoxSize(Control control, WxControlPainterHandler.DrawFlags flags = DrawFlags.None)
Parameters
control
ControlControl 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.