Table of Contents

Method DrawRadioButton

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

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

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

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

Parameters

canvas Graphics

The Graphics surface used for rendering.

control AbstractControl

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

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).