This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 7th, 2013  |  syntax: C#  |  size: 0.24 KB  |  views: 194  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         public void CollapseColumn(int column)
  2.         {
  3.                 int gapCount = 0;
  4.                 for (int y = 0; y < Layout.Height; y++)
  5.                 {
  6.                         GridPos pos = new GridPos(column, y);
  7.                         if (Layout[pos] == null) gapCount++;
  8.                         else Layout[pos].MoveDown(gapCount);
  9.                 }
  10.         }
clone this paste RAW Paste Data