src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeControl.cs
/// <summary>
///     Locate and select an object in this control
/// </summary>
/// <param name="startingBranch">The branch to start the search from, or null for the root branch.</param>
/// <param name="target">The object to locate</param>
/// <param name="selectStyle">The object location style (sent to IBranch.LocateObject locateStyle parameter)</param>
/// <param name="selectData">The object location data (sent to IBranch.LocateObject locateOptions parameter)</param>
/// <returns>true if the item was selected</returns>
Locate and select an object in this control
Locate and select an object in this control
public bool SelectObject(IBranch startingBranch, object target, int selectStyle, int selectData)
        {
            return SelectObject(startingBranch, target, selectStyle, selectData, false, false, ModifySelectionAction.Select);
        }
public bool SelectObject ( IBranch startingBranch , object target , int selectStyle , int selectData ) { return SelectObject ( startingBranch , target , selectStyle , selectData , false , false , ModifySelectionAction . Select ) ; }
Locate and select an object in this control
Locate and select an object in this control
// The code here would look the same as the more specific SelectObject function, except that // it would always set the CurrentIndex property, even in ExtendedMultiSelect cases. The // last three parameters match the values used inside CurrentIndex for the SetCurrentExtendedMultiSelectIndex // call, so just defer to the more advanced function.
true if the item was selected
true if the item was selected
startingBranch
IBranch
The branch to start the search from, or null for the root branch.
The branch to start the search from or null for the root branch .
target
object
The object to locate
The object to locate
selectStyle
int
The object location style (sent to IBranch.LocateObject locateStyle parameter)
The object location style ( sent to IBranch . LocateObject locateStyle parameter )
selectData
int
The object location data (sent to IBranch.LocateObject locateOptions parameter)
The object location data ( sent to IBranch . LocateObject locateOptions parameter )