Table of Contents

Method DrawRadioButtonSvg

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

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

Draws a radio button using an SVG-based visual representation within the specified bounds and state.

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

Parameters

control AbstractControl

The AbstractControl instance representing where the radio button will be drawn. It used in order to get scale factor and dark mode settings.

canvas Graphics

The Graphics surface onto which the radio button will be rendered.

rect RectD

The RectD defining the layout bounds of the radio button.

isChecked bool

Specifies whether the radio button is currently in a checked state.

controlState VisualControlState

The VisualControlState representing the current interaction state (e.g., normal, hovered, disabled) used for rendering.