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); }
void OnEnable() { _this = target as Sider; }
public int GetSiderWidth() { return(Shared.Max(Sider.Max(c => c.Size.Width), CornerCell.Size.Width)); }
public IndexCell GetLastVisibleSiderInView() { return(Sider.LastOrDefault(s => IsRowInView(s.Index) && !IsRowHidden(s.Index))); }