Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

Cell Field, PartEventArgs Class

Defines which cell owns the part or null/Nothing if no cell is associated with the part.

Class: PartEventArgs
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public readonly CellClass Cell;
Public ReadOnly Cell As CellClass

Comments

Defines which cell owns the part or null/Nothing if no cell is associated with the part.

Examples

C#

        // item's selection state.
        private void sftTree1_KeyDown(object sender, KeyEventArgs e) {
            if (e.KeyCode == Keys.Space) {
                e.Handled = true;
            }
        }

        private void sftTree1_CheckBoxClicked(object sender, PartEventArgs e) {
            Debug.Print("The checkbox labeled " + e.Cell.Text + " was clicked.");
        }

        private void sftTree1_RadioButtonClicked(object sender, PartEventArgs e) {
            Debug.Print("The radiobutton labeled " + e.Cell.Text + " was clicked.");
        }

    }

VB.NET

Private Sub SftTree1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles SftTree1.KeyDown
    If e.KeyCode = Keys.Space Then
        e.Handled = True
    End If
End Sub

Private Sub SftTree1_CheckBoxClicked(ByVal sender As Object, ByVal e As Softelvdm.SftTreeNET.PartEventArgs) Handles SftTree1.CheckBoxClicked
    Debug.Print("The checkbox labeled " + e.Cell.Text + " was clicked.")
End Sub

Private Sub SftTree1_RadioButtonClicked(ByVal sender As Object, ByVal e As Softelvdm.SftTreeNET.PartEventArgs) Handles SftTree1.RadioButtonClicked
    Debug.Print("The radiobutton labeled " + e.Cell.Text + " was clicked.")
End Sub

' This is a small helper routine to show all properties and fields of an object
Private Sub DumpValues(ByVal o As Object)

See Also PartEventArgs Class | Classes | SftTree/NET 2.0