HeaderPane
Main
Hide
Share Link
Print

SelectionChanged Event, SftTree Class

Occurs when the item or cell selection has changed.

Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public event SelectionChangedEventHandler SelectionChanged;
Public Event SelectionChanged As SelectionChangedEventHandler

Comments

Occurs when the item or cell selection has changed.

The SelectionChanged event is not limited to mouse events as the selection can change through keyboard input also. To determine which mouse button was pressed and/or in which area of the tree control the mouse button was pressed, use the MouseDown event or ItemClick event instead.

Examples

C#

            DumpValues("QueryContinueDrag", e);
        }

        private void sftTree1_RadioButtonClicked(object sender, Softelvdm.SftTreeNET.PartEventArgs e) {
            DumpValues("RadioButtonClicked", e);
        }

        private void sftTree1_SelectionChanged(object sender, EventArgs e) {
            DumpValues("SelectionChanged", e);
        }

        private void sftTree1_ShowScrollTip(object sender, Softelvdm.SftTreeNET.ToolTipEventArgs e) {
            DumpValues("ShowScrollTip", e);
        }

        private void sftTree1_ShowToolTip(object sender, Softelvdm.SftTreeNET.ToolTipEventArgs e) {

VB.NET

    DumpValues("QueryContinueDrag", e)
End Sub

Private Sub SftTree1_RadioButtonClicked(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.PartEventArgs) Handles SftTree1.RadioButtonClicked
    DumpValues("RadioButtonClicked", e)
End Sub


Private Sub SftTree1_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTree1.SelectionChanged
    DumpValues("SelectionChanged", e)
End Sub

Private Sub SftTree1_ShowScrollTip(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.ToolTipEventArgs) Handles SftTree1.ShowScrollTip
    DumpValues("ShowScrollTip", e)
End Sub

See Also SftTree Class | Classes | SftTree/NET 3.0