Click or drag to resize
Sandcastle Help File BuilderControlExtensionsAutoScrollIfNeeded Method
This TreeView extension method auto-scrolls the tree view if the mouse position is within a few display units of the top or bottom of the control.

Namespace: SandcastleBuilder.WPF
Assembly: SandcastleBuilder.WPF (in SandcastleBuilder.WPF.dll) Version: 2014.11.22.0
Syntax
public static void AutoScrollIfNeeded(
	this TreeView treeView,
	Point mousePosition
)

Parameters

treeView
Type: System.Windows.ControlsTreeView
The tree view to use
mousePosition
Type: System.WindowsPoint
The current position of the mouse

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TreeView. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
This is useful for scrolling during drag and drop operations
See Also