Defines the state of a checkbox.
Class: (none)
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public enum CheckBoxStateEnum;
Public Enum CheckBoxStateEnum
| Name | Description |
|---|---|
| Unchecked | The checkbox is unchecked. |
| Checked | The checkbox is checked. |
| Indeterminate | The checkbox is neither checked nor unchecked and has a shaded appearance. |
Defines the state of a checkbox.
{
ItemClass newItem;
if (item != null)
newItem = item.Add();
else
newItem = sftTree1.ItemCollection.Add();
newItem.TagObject = id;
if (elem.Name == "Checkbox") {
CheckBoxStateEnum check = CheckBoxStateEnum.Unchecked;
string strcheck = "";
try {
strcheck = elem.Attributes["Status"].Value;
} catch {
strcheck = "";
}
if (strcheck != "")
Dim newItem As ItemClass
If Not item Is Nothing Then
newItem = item.Add()
Else
newItem = SftTree1.ItemCollection.Add()
End If
newItem.TagObject = id
If elem.Name = "Checkbox" Then
Dim check As CheckBoxStateEnum = CheckBoxStateEnum.Unchecked
Dim strcheck As String = ""
Try
strcheck = elem.Attributes("Status").Value
Catch
strcheck = ""
End Try
If (strcheck <> "") ThenSee Also | Classes | SftTree/NET 3.0