HeaderPane
Main
Hide
Share Link
Print

CheckBoxStateEnum Enumeration

Defines the state of a checkbox.

Class: (none)
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

public enum CheckBoxStateEnum;
Public Enum CheckBoxStateEnum

Values

NameDescription
UncheckedThe checkbox is unchecked.
CheckedThe checkbox is checked.
IndeterminateThe checkbox is neither checked nor unchecked and has a shaded appearance.

Comments

Defines the state of a checkbox.

Examples

C#

        {
            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 != "")

VB.NET

    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 <> "") Then

See Also | Classes | SftTree/NET 3.0