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
public readonly CellClass Cell;
Public ReadOnly Cell As CellClassDefines which cell owns the part or null/Nothing if no cell is associated with the part.
// 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.");
}
}
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