示例#1
0
        public void trackAndUntrackColumn()
        {
            Assume.That(tracker.TrackedColumns.Count == 0);
            tracker.TrackColumn(0);
            ISet <int> expected = new HashSet <int>();

            expected.Add(0);
            Assert.AreEqual(expected, tracker.TrackedColumns);
            tracker.UntrackColumn(0);
            Assert.IsTrue(tracker.TrackedColumns.Count == 0);
        }
示例#2
0
 /**
  * Removes a column that was previously marked for inclusion in auto-size column tracking.
  * When a column is untracked, the best-fit width is forgotten.
  * If <code>column</code> is not tracked, it will be ignored by this call.
  *
  * @param column the index of the column to track for auto-sizing
  * @return true if column was tracked prior to this call, false if no action was taken
  * @since 3.14beta1
  * @see #untrackColumnsForAutoSizing(Collection)
  * @see #untrackAllColumnsForAutoSizing(int)
  */
 public bool UntrackColumnForAutoSizing(int column)
 {
     return(_autoSizeColumnTracker.UntrackColumn(column));
 }