Пример #1
0
 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);
     }));
 }
Пример #2
0
 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)));
 }