SourceGrid.GridVirtual.ArrangeLinkedControls C# (CSharp) Méthode

ArrangeLinkedControls() public méthode

Refresh the linked controls bounds
public ArrangeLinkedControls ( ) : void
Résultat void
        public virtual void ArrangeLinkedControls()
        {
            SuspendLayout();
            foreach (LinkedControlValue linked in m_LinkedControls)
            {
                if (linked.Position.IsEmpty())
                    continue;

                Control control = linked.Control;
                Cells.ICellVirtual cell = GetCell(linked.Position);

                Rectangle rect = PositionToRectangle(linked.Position);

                if (cell != null && linked.UseCellBorder)
                    rect = Rectangle.Round(cell.View.Border.GetContentRectangle(rect));

                control.Bounds = rect;
            }
            ResumeLayout(false);
        }