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
itemsstring[]
Properties
Count
Number of options.
public int Count { get; }
Property Value
DefaultSize
Natural size used when no explicit size is given.
protected override Size DefaultSize { get; }
Property Value
Items
Option texts (null = parameter state labels).
public IReadOnlyList<string>? Items { get; set; }
Property Value
Labels
Option labels in effect.
public IReadOnlyList<string> Labels { get; }
Property Value
Orientation
Stacking direction.
public Orientation Orientation { get; set; }
Property Value
RowHeight
Height of a row (vertical) in DIPs.
public float RowHeight { get; set; }
Property Value
SelectedIndex
Selected option index.
public int SelectedIndex { get; set; }
Property Value
ValueText
Text drawn in the value area (null = no value area).
public override string? ValueText { get; }
Property Value
Methods
OnKeyDown(KeyEventArgs)
Key pressed while focused (bubbles to parents).
protected override void OnKeyDown(KeyEventArgs e)
Parameters
OnMouseDown(MouseEventArgs)
Mouse button pressed over the element (or captured).
protected override void OnMouseDown(MouseEventArgs e)
Parameters
OnMouseMove(MouseEventArgs)
Mouse moved over the element (or captured).
protected override void OnMouseMove(MouseEventArgs e)
Parameters
RenderVector(DrawingContext, Rect, VectorStyle)
Vector rendering of the widget area.
protected override void RenderVector(DrawingContext dc, Rect widget, VectorStyle style)
Parameters
dcDrawingContextwidgetRectstyleVectorStyle