Table of Contents

Method GetCheckBoxSize

Namespace
Alternet.Drawing
Assembly
Alternet.UI.dll

GetCheckBoxSize(Control, CheckState, VisualControlState)

Gets default checkbox size.

public SizeD GetCheckBoxSize(Control control, CheckState checkState, VisualControlState controlState)

Parameters

control Control

Control where checkbox will be painted.

checkState CheckState

Check state.

controlState VisualControlState

Control part state.

Returns

SizeD

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 Control

Control in which drawing will be performed.

flags WxControlPainterHandler.DrawFlags

Drawing flags.

Returns

SizeD

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.