private void _FixScrollIndex()
{
if (_nodeList == null || _nodeList.Count == 0)
{
scrollIndex = 0;
return;
}
if (SmoothScrolling == false)
scrollIndex = (float)Math.Ceiling(scrollIndex / ItemHeight) * ItemHeight;
if (scrollIndex > _nodeList.Last().Bounds.Y + ItemHeight - Height) scrollIndex = _nodeList.Last().Bounds.Y + ItemHeight - Height;
if (scrollIndex < 0) scrollIndex = 0;
}
private TreeNode _GetNodeAtPosition(TreeNode rootNode, Point position)