System.Windows.Forms.TreeView._GetNodeBounds C# (CSharp) Method

_GetNodeBounds() private method

private _GetNodeBounds ( TreeNode node ) : Rectangle
node TreeNode
return Rectangle
        private Rectangle _GetNodeBounds(TreeNode node)
        {
            _nodeList.Add(node);

            int x = Padding.Left + 2;
            int y = Padding.Top;
            int width = Width;
            int height = ItemHeight;

            x += (node.GetXIndex() - 1) * 8;
            y += (_nodeList.Count - 1) * ItemHeight;

            return new Rectangle(x, y, width, height);
        }
        private void _OnDrawNode(object sender, DrawTreeNodeEventArgs e)