예제 #1
0
        public Table(string name, int columnCount, int rowCount)
        {
            Name = name;
            Size = new Size(columnCount, rowCount);
            ResetViewOptions();

            Shared.IndexArray(rowCount).ForEach(y =>
                                                Shared.IndexArray(columnCount).ForEach(x => Content.Add(new Cell("Cell x" /*, new Position(x, y), ":)"*/))));

            Shared.IndexArray(columnCount).ForEach(x =>
                                                   Header.Add(new IndexCell(x, Settings.Current.IndexCellLeftArrow, Settings.Current.IndexCellRightArrow)));

            Shared.IndexArray(rowCount).ForEach(y =>
                                                Sider.Add(new IndexCell(y, Settings.Current.IndexCellUpArrow, Settings.Current.IndexCellDownArrow)));

            //HideColumn(3);
        }
예제 #2
0
 void OnEnable()
 {
     _this = target as Sider;
 }
예제 #3
0
 public int GetSiderWidth()
 {
     return(Shared.Max(Sider.Max(c => c.Size.Width), CornerCell.Size.Width));
 }
예제 #4
0
 public IndexCell GetLastVisibleSiderInView()
 {
     return(Sider.LastOrDefault(s => IsRowInView(s.Index) && !IsRowHidden(s.Index)));
 }