Skip to main content

VisRadioListBox

Namespace: PPJ.Runtime.Vis

Assembly: PPJ.Runtime.Vis.50 (5.0.0.0)

Displays selectable items with radio-button or checkbox images.

public class VisRadioListBox : VisListBoxBase

Example:

using (var list = new PPJ.Runtime.Vis.VisRadioListBox())
{
list.Width = 240;
}

Constructors

Instance member VisRadioListBox()

Initializes the radio list box and its default behavior.

Properties

Instance member SelectionMode

SelectionMode: Gets or sets how items can be selected. (Default: One)

MultiExtended is converted to MultiSimple before assignment.

Methods

Instance member Add(sText, bSelect)

Appends an item with the pictures appropriate to the current selection mode.

ParameterTypeDescription
sTextSalStringThe item caption.
bSelectSalBooleanWhether to select the new item.

Returns: SalNumber. The index returned by the underlying picture-item operation.

When selected, a single-selection list replaces the selected index; other selection modes add the item to the selection. The item value is zero.

Instance member AddValue(sText, bSelect, nValue)

Appends an item with the pictures appropriate to the current selection mode.

ParameterTypeDescription
sTextSalStringThe item caption.
bSelectSalBooleanWhether to select the new item.
nValueSalNumberThe application value associated with the item.

Returns: SalNumber. The index returned by the underlying picture-item operation.

When selected, a single-selection list replaces the selected index; other selection modes add the item to the selection.

Static member FromHandle(handle)

Resolves this control type from a native window handle.

ParameterTypeDescription
handleSalWindowHandleThe native control handle.

Returns: VisRadioListBox. The associated VisRadioListBox, or null when no managed control owns the handle.

A handle belonging to a different managed control type causes an InvalidCastException.

Instance member Insert(nIndex, sText, bSelect)

Inserts an item with the pictures appropriate to the current selection mode.

ParameterTypeDescription
nIndexSalNumberThe zero-based position before which to insert the item.
sTextSalStringThe item caption.
bSelectSalBooleanWhether to select the new item.

Returns: SalNumber. The index returned by the underlying picture-item operation.

When selected, a single-selection list replaces the selected index; other selection modes add the item to the selection. The item value is zero.

Instance member InsertValue(nIndex, sText, bSelect, nValue)

Inserts an item with the pictures appropriate to the current selection mode.

ParameterTypeDescription
nIndexSalNumberThe zero-based position before which to insert the item.
sTextSalStringThe item caption.
bSelectSalBooleanWhether to select the new item.
nValueSalNumberThe application value associated with the item.

Returns: SalNumber. The index returned by the underlying picture-item operation.

When selected, a single-selection list replaces the selected index; other selection modes add the item to the selection.

Implements

NameDescription
ISalControl
ISalListControl
ISalWindow