Defines the state of a radiobutton.
Class: (none)
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public enum RadioButtonStateEnum;
Public Enum RadioButtonStateEnum
| Name | Description |
|---|---|
| Unchecked | The radiobutton is not selected. |
| Checked | The radiobutton is selected. |
Defines the state of a radiobutton.
// Add an item
ItemClass item = sftTree1.ItemCollection.Add();
CellClass cell = item.Cells[0];
item.Image = img;
cell.Text = "Category 1";
// Add some sub items
ItemClass subItem = item.Add();
RadioButtonPartClass rb = new RadioButtonPartClass(RadioButtonStateEnum.Checked);
subItem.Cells[0].Parts.Add(rb);
subItem.Cells[0].Parts.Add(new CheckBoxPartClass());
subItem.Cells[0].Parts.Add(new TextPartClass("Item 1"));
subItem = item.Add();
rb = new RadioButtonPartClass(RadioButtonStateEnum.Unchecked);
subItem.Cells[0].Parts.Add(rb);
subItem.Cells[0].Parts.Add(new TextPartClass("Item 2"));
subItem = item.Add();
' Add an item
Dim item As ItemClass = sftTree1.ItemCollection.Add()
Dim cell As CellClass = item.Cells(0)
item.Image = img
cell.Text = "Category 1"
' Add some sub items
Dim subItem As ItemClass = item.Add()
Dim rb As RadioButtonPartClass = New RadioButtonPartClass(RadioButtonStateEnum.Checked)
subItem.Cells(0).Parts.Add(rb)
subItem.Cells(0).Parts.Add(New CheckBoxPartClass())
subItem.Cells(0).Parts.Add(New TextPartClass("Item 1"))
subItem = item.Add()
rb = New RadioButtonPartClass(RadioButtonStateEnum.Unchecked)
subItem.Cells(0).Parts.Add(rb)
subItem.Cells(0).Parts.Add(New TextPartClass("Item 2"))
subItem = item.Add()See Also | Classes | SftTree/NET 2.0