public CellOverflowLayout GetCellOverflowLayout(int columnIndex) { if ((HeadingOverflowlayout != null) && HeadingOverflowlayout.Contains(columnIndex)) { return(HeadingOverflowlayout); } if ((TrailingOverflowlayout != null) && TrailingOverflowlayout.Contains(columnIndex)) { return(TrailingOverflowlayout); } return(Enumerable.FirstOrDefault <CellOverflowLayout>(this, delegate(CellOverflowLayout c) { return c.Contains(columnIndex); })); }
public bool Contains(int columnIndex) { for (int i = base.Count - 1; i >= 0; i--) { CellOverflowLayout layout = base[i]; if (layout.Contains(columnIndex)) { return(true); } } return(((HeadingOverflowlayout != null) && HeadingOverflowlayout.Contains(columnIndex)) || ((TrailingOverflowlayout != null) && TrailingOverflowlayout.Contains(columnIndex))); }