src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeSelection.cs
/// <summary>
///     Selects all items in the tree.  The SelectionMode property must be set to a value that supports multiple selections for this to work.
///     Note that selection only spans a single column.
/// </summary>
Selects all items in the tree.  The SelectionMode property must be set to a value that supports multiple selections for this to work.
Note that selection only spans a single column.
Selects all items in the tree . The SelectionMode property must be set to a value that supports multiple selections for this to work . Note that selection only spans a single column .
public void SelectAll()
        {
            if (GetStyleFlag(VTCStyleFlags.MultiSelect))
            {
                var itemCount = myTree.VisibleItemCount;
                if (itemCount > 0)
                {
                    ClearSelection(false);
                    SetSelectionRange(0, myTree.VisibleItemCount - 1, true);
                    DoSelectionChanged();
                    FireWinEventsForSelection(true, false, ModifySelectionAction.None);
                }
            }
        }
public void SelectAll ( ) { if ( GetStyleFlag ( VTCStyleFlags . MultiSelect ) ) { var itemCount = myTree . VisibleItemCount ; if ( itemCount > 0 ) { ClearSelection ( false ) ; SetSelectionRange ( 0 , myTree . VisibleItemCount - 1 , true ) ; DoSelectionChanged ( ) ; FireWinEventsForSelection ( true , false , ModifySelectionAction . None ) ; } } }
Selects all items in the tree.
Selects all items in the tree .