OptimizedScrollView GetScrollViewCreateIfMissing(string name) { OptimizedScrollView scrollView; if (!scrollViewDic.TryGetValue(name, out scrollView)) { scrollView = new OptimizedScrollView(name, this, LineHeight, CellHeight); scrollViewDic.Add(name, scrollView); } return(scrollView); }
OptimizedScrollView GetScrollViewCreateIfMissing(string name) { OptimizedScrollView scrollView; if (!scrollViewDic.TryGetValue(name, out scrollView)) { scrollView = new OptimizedScrollView(name, this, LineHeight, CellHeight); bool foldOut; if (TryGetFoldOut(name, out foldOut)) { scrollView.Foldout = foldOut; } scrollViewDic.Add(name, scrollView); } return(scrollView); }