示例#1
0
        protected void RemoveLayoutInformationForChild(Control child)
        {
            LayoutInformation layoutInformation = LayoutInformation.FirstOrDefault(li => li.Control == child);

            if (layoutInformation == null)
            {
                return;
            }
            LayoutInformation.Remove(layoutInformation);
        }
示例#2
0
        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);
        }