private Rectangle GetNodeBounds(TreeNode node) { int x = Padding.Left + 2; int y = Padding.Top - (int)scrollIndex; int width = Width; int height = ItemHeight; x += (node.GetXIndex() - 1) * 8; y += node.indexY * ItemHeight; return(new Rectangle(x, y, width, height)); }
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 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); }