Table of Contents

Method DrawRadioButton

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

DrawRadioButton(AbstractControl, Graphics, RectD, bool, VisualControlState)

Draws a radio button control within the specified bounds, reflecting its checked state and visual appearance.

void DrawRadioButton(AbstractControl control, Graphics canvas, RectD rect, bool isChecked, VisualControlState controlState)

Parameters

control AbstractControl

The AbstractControl instance where radio button will be painted. Used for scale factor and dark mode determination.

canvas Graphics

The Graphics surface used for rendering.

rect RectD

The bounding RectD that defines the button’s layout region.

isChecked bool

Indicates whether the radio button is currently checked.

controlState VisualControlState

The current VisualControlState used to render visual feedback (e.g., selected, inactive).