HeaderPane
Main
Hide
Share Link
Print

Handled Property, TabDragDetectedEventArgs Class

Set to True when the application starts its own drag operation, which ends the control's reordering.

Class: TabDragDetectedEventArgs
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Syntax

public bool Handled { get; set; }
Public Property Handled As Boolean

Value

True if the application started its own drag operation, otherwise False.

The default value is False.

Comments

Set to True when the application starts its own drag operation, which ends the control's reordering.

Examples

C# View entire sample code

        private void sftTabs1_RestoreButtonClicked(object sender, EventArgs e) {
            DumpValues("RestoreButtonClicked", e);
        }

        private void sftTabs1_DragDetected(object sender, TabDragDetectedEventArgs e) {
            DumpValues("DragDetected", e);

            // e.Handled is left False, so the control lets the user move the tab (AllowReordering property)
        }

        private void sftTabs1_TabReordered(object sender, TabReorderedEventArgs e) {
            DumpValues("TabReordered", e);
        }

        private void sftTabs1_TabAdded(object sender, TabEventArgs e) {
            DumpValues("TabAdded", e);

VB.NET View entire sample code

Private Sub SftTabs1_RestoreButtonClicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTabs1.RestoreButtonClicked
    DumpValues("RestoreButtonClicked", e)
End Sub

Private Sub SftTabs1_DragDetected(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabDragDetectedEventArgs) Handles SftTabs1.DragDetected
    DumpValues("DragDetected", e)

    ' e.Handled is left False, so the control lets the user move the tab (AllowReordering property)
End Sub

Private Sub SftTabs1_TabReordered(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabReorderedEventArgs) Handles SftTabs1.TabReordered
    DumpValues("TabReordered", e)
End Sub

Private Sub SftTabs1_TabAdded(ByVal sender As System.Object, ByVal e As Softelvdm.SftTabsNET.TabEventArgs) Handles SftTabs1.TabAdded
    DumpValues("TabAdded", e)

See Also TabDragDetectedEventArgs Class | Classes | SftTabs/NET 3.0