| ControlExtensionsAutoScrollIfNeeded 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.WPFAssembly: SandcastleBuilder.WPF (in SandcastleBuilder.WPF.dll) Version: 2014.11.22.0
Syntax public static void AutoScrollIfNeeded(
this TreeView treeView,
Point mousePosition
)
<ExtensionAttribute>
Public Shared Sub AutoScrollIfNeeded (
treeView As TreeView,
mousePosition As Point
)
public:
[ExtensionAttribute]
static void AutoScrollIfNeeded(
TreeView^ treeView,
Point mousePosition
)
[<ExtensionAttribute>]
static member AutoScrollIfNeeded :
treeView : TreeView *
mousePosition : Point -> unit
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