VisRadioListBox
Namespace: PPJ.Runtime.Vis
Assembly: PPJ.Runtime.Vis.50 (5.0.0.0)
Displays selectable items with radio-button or checkbox images.
- C#
- VB.NET
public class VisRadioListBox : VisListBoxBase
Public Class VisRadioListBox
Inherits VisListBoxBase
Example:
using (var list = new PPJ.Runtime.Vis.VisRadioListBox())
{
list.Width = 240;
}
Constructors
VisRadioListBox()
Initializes the radio list box and its default behavior.
Properties
SelectionMode
SelectionMode: Gets or sets how items can be selected. (Default: One)
MultiExtended is converted to MultiSimple before assignment.
Methods
Add(sText, bSelect)
Appends an item with the pictures appropriate to the current selection mode.
| Parameter | Type | Description |
|---|---|---|
| sText | SalString | The item caption. |
| bSelect | SalBoolean | Whether 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.
AddValue(sText, bSelect, nValue)
Appends an item with the pictures appropriate to the current selection mode.
| Parameter | Type | Description |
|---|---|---|
| sText | SalString | The item caption. |
| bSelect | SalBoolean | Whether to select the new item. |
| nValue | SalNumber | The 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.
FromHandle(handle)
Resolves this control type from a native window handle.
| Parameter | Type | Description |
|---|---|---|
| handle | SalWindowHandle | The 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.
Insert(nIndex, sText, bSelect)
Inserts an item with the pictures appropriate to the current selection mode.
| Parameter | Type | Description |
|---|---|---|
| nIndex | SalNumber | The zero-based position before which to insert the item. |
| sText | SalString | The item caption. |
| bSelect | SalBoolean | Whether 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.
InsertValue(nIndex, sText, bSelect, nValue)
Inserts an item with the pictures appropriate to the current selection mode.
| Parameter | Type | Description |
|---|---|---|
| nIndex | SalNumber | The zero-based position before which to insert the item. |
| sText | SalString | The item caption. |
| bSelect | SalBoolean | Whether to select the new item. |
| nValue | SalNumber | The 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
| Name | Description |
|---|---|
| ISalControl | |
| ISalListControl | |
| ISalWindow |