GetXIndex() private method

private GetXIndex ( ) : int
return int
Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        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);
        }