src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeSelection.cs
/// <summary>
///     Selects a range of 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.  This method does not change anchor or caret indices.
/// </summary>
/// <param name="startIndex">Beginning index of the selection.</param>
/// <param name="endIndex">Ending index of the selection.</param>
/// <param name="performSelection">True to select items, false to deselect.</param>
Selects a range of 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.  This method does not change anchor or caret indices.
Selects a range of 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 . This method does not change anchor or caret indices .
public void SelectRange(int startIndex, int endIndex, bool performSelection)
        {
            if (GetStyleFlag(VTCStyleFlags.MultiSelect))
            {
                if (startIndex > endIndex)
                {
                    throw new ArgumentOutOfRangeException("startIndex");
                }
                CheckIndex(startIndex);
                CheckIndex(endIndex);
                SetSelectionRange(startIndex, endIndex, performSelection);
                DoSelectionChanged();
                FireWinEventsForSelection(true, false, ModifySelectionAction.None);
            }
        }
public void SelectRange ( int startIndex , int endIndex , bool performSelection ) { if ( GetStyleFlag ( VTCStyleFlags . MultiSelect ) ) { if ( startIndex > endIndex ) { throw new ArgumentOutOfRangeException ( " " ) ; } CheckIndex ( startIndex ) ; CheckIndex ( endIndex ) ; SetSelectionRange ( startIndex , endIndex , performSelection ) ; DoSelectionChanged ( ) ; FireWinEventsForSelection ( true , false , ModifySelectionAction . None ) ; } }
Selects a range of items in the tree.
Selects a range of items in the tree .
startIndex
int
Beginning index of the selection.
Beginning index of the selection .
endIndex
int
Ending index of the selection.
Ending index of the selection .
performSelection
bool
True to select items, false to deselect.
True to select items false to deselect .