src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeSelection.cs
/// <summary>
///     Set the multi select caret index on the given item. Calling this with false, false will
///     make the new caret the only selected item.
/// </summary>
/// <param name="newCaret">The new caret position</param>
/// <param name="extendFromAnchor">True to extend the selection from the current anchor position</param>
/// <param name="preserveSelection">True to maintain selected items outside the anchored range</param>
/// <param name="selectCaretAction">Specify how the selection state should be modified</param>
Set the multi select caret index on the given item. Calling this with false, false will
make the new caret the only selected item.
Set the multi select caret index on the given item . Calling this with false false will make the new caret the only selected item .
public void SetCurrentExtendedMultiSelectIndex(
            int newCaret, bool extendFromAnchor, bool preserveSelection, ModifySelectionAction selectCaretAction)
        {
            SetCurrentExtendedMultiSelectIndex(newCaret, extendFromAnchor, preserveSelection, selectCaretAction, true);
        }
public void SetCurrentExtendedMultiSelectIndex ( int newCaret , bool extendFromAnchor , bool preserveSelection , ModifySelectionAction selectCaretAction ) { SetCurrentExtendedMultiSelectIndex ( newCaret , extendFromAnchor , preserveSelection , selectCaretAction , true ) ; }
Set the multi select caret index on the given item.
Set the multi select caret index on the given item .
newCaret
int
The new caret position
The new caret position
extendFromAnchor
bool
True to extend the selection from the current anchor position
True to extend the selection from the current anchor position
preserveSelection
bool
True to maintain selected items outside the anchored range
True to maintain selected items outside the anchored range
selectCaretAction
ModifySelectionAction
Specify how the selection state should be modified
Specify how the selection state should be modified