protected void RemoveLayoutInformationForChild(Control child) { LayoutInformation layoutInformation = LayoutInformation.FirstOrDefault(li => li.Control == child); if (layoutInformation == null) { return; } LayoutInformation.Remove(layoutInformation); }
protected LayoutInformation GetLayoutInformationForChild(Control child) { LayoutInformation layoutInformation = LayoutInformation.FirstOrDefault(li => li.Control == child); if (layoutInformation == null) { layoutInformation = new LayoutInformation(child); LayoutInformation.Add(layoutInformation); } return(layoutInformation); }