コード例 #1
0
ファイル: RangeCreator.cs プロジェクト: wsrf2009/KnxUiEditor
		public RangeCreator CreateRanges()
		{
			var grid = new Grid();
			grid.Redim(RowCount, ColCount);
			SpannedRangesList = new SpannedRangesList();
			for (int r = 0; r < RowCount; r++)
				for (int c = 0; c < ColCount; c++)
			{
				if (c + Span < ColCount)
				{
					SpannedRangesList.Add(new Range(r, c, r, c + Span));
					c += Span;
				}
			}
			return this;
		}
コード例 #2
0
        public RangeCreator CreateRanges()
        {
            var grid = new Grid();

            grid.Redim(RowCount, ColCount);
            SpannedRangesList = new SpannedRangesList();
            for (int r = 0; r < RowCount; r++)
            {
                for (int c = 0; c < ColCount; c++)
                {
                    if (c + Span < ColCount)
                    {
                        SpannedRangesList.Add(new Range(r, c, r, c + Span));
                        c += Span;
                    }
                }
            }
            return(this);
        }
コード例 #3
0
		public SpannedCellRangesController(Grid grid)
		{
			this.m_grid = grid;
			SpannedRangesCollection = new SpannedRangesList();
		}