Exemplo n.º 1
0
        public override Point GetChildLocation(PropertyEditor child)
        {
            // Pick child editor, if applying
            int curY = this.headerHeight;

            foreach (PropertyEditor e in this.propertyEditors)
            {
                if (child == e || child.IsChildOf(e))
                {
                    Point result = e.GetChildLocation(child);
                    result.X += this.ClientRectangle.X + this.indent;
                    result.Y += this.ClientRectangle.Y + curY;
                    return(result);
                }
                curY += e.Height;
            }

            return(base.GetChildLocation(child));
        }
Exemplo n.º 2
0
        public override Point GetChildLocation(PropertyEditor child)
        {
            // Pick child editor, if applying
            int curY = this.headerHeight;
            foreach (PropertyEditor e in this.propertyEditors)
            {
                if (child == e || child.IsChildOf(e))
                {
                    Point result = e.GetChildLocation(child);
                    result.X += this.ClientRectangle.X + this.indent;
                    result.Y += this.ClientRectangle.Y + curY;
                    return result;
                }
                curY += e.Height;
            }

            return base.GetChildLocation(child);
        }