Table of Contents

Class RadioGroup

Namespace
PluginUI
Assembly
PluginUI.dll

Vertical (or horizontal) list of radio buttons bound to one discrete value. Texts come from Items or the parameter's state labels.

public class RadioGroup : ValueControl
Inheritance
RadioGroup
Inherited Members

Constructors

RadioGroup()

Creates a radio group.

public RadioGroup()

RadioGroup(params string[])

Creates a radio group with local items.

public RadioGroup(params string[] items)

Parameters

items string[]

Properties

Count

Number of options.

public int Count { get; }

Property Value

int

DefaultSize

Natural size used when no explicit size is given.

protected override Size DefaultSize { get; }

Property Value

Size

Items

Option texts (null = parameter state labels).

public IReadOnlyList<string>? Items { get; set; }

Property Value

IReadOnlyList<string>

Labels

Option labels in effect.

public IReadOnlyList<string> Labels { get; }

Property Value

IReadOnlyList<string>

Orientation

Stacking direction.

public Orientation Orientation { get; set; }

Property Value

Orientation

RowHeight

Height of a row (vertical) in DIPs.

public float RowHeight { get; set; }

Property Value

float

SelectedIndex

Selected option index.

public int SelectedIndex { get; set; }

Property Value

int

ValueText

Text drawn in the value area (null = no value area).

public override string? ValueText { get; }

Property Value

string

Methods

OnKeyDown(KeyEventArgs)

Key pressed while focused (bubbles to parents).

protected override void OnKeyDown(KeyEventArgs e)

Parameters

e KeyEventArgs

OnMouseDown(MouseEventArgs)

Mouse button pressed over the element (or captured).

protected override void OnMouseDown(MouseEventArgs e)

Parameters

e MouseEventArgs

OnMouseMove(MouseEventArgs)

Mouse moved over the element (or captured).

protected override void OnMouseMove(MouseEventArgs e)

Parameters

e MouseEventArgs

RenderVector(DrawingContext, Rect, VectorStyle)

Vector rendering of the widget area.

protected override void RenderVector(DrawingContext dc, Rect widget, VectorStyle style)

Parameters

dc DrawingContext
widget Rect
style VectorStyle