SetOwnerParentRowCollection() private method

private SetOwnerParentRowCollection ( GridTable parentRowCollection ) : void
parentRowCollection GridTable
return void
コード例 #1
0
ファイル: 3_GridTable.cs プロジェクト: dhilip89/PixelFarm
            internal void InsertAfter(int afterRowId, GridRow row)
            {
                int newRowHeight = row.Height;

                row.SetOwnerParentRowCollection(this);
                row.RowIndex = afterRowId + 1;
                rows.Insert(afterRowId + 1, row);
                foreach (GridColumn coldef in table.GetColumnIter())
                {
                    coldef.InsertAfter(afterRowId, row);
                }

                int j = rows.Count;

                for (int i = afterRowId + 2; i < j; i++)
                {
                    GridRow r = rows[i];
                    r.RowIndex = i;
                }
            }
コード例 #2
0
ファイル: 3_GridTable.cs プロジェクト: dhilip89/PixelFarm
            public void Add(GridRow row)
            {
                int lastcount = rows.Count;

                row.RowIndex = lastcount;
                if (lastcount > 0)
                {
                    row.Top = rows[lastcount - 1].Bottom;
                }

                rows.Add(row);
                if (!row.IsBoundToGrid)
                {
                    foreach (GridColumn column in table.GetColumnIter())
                    {
                        column.CreateGridItemForRow(row);
                    }
                }
                row.SetOwnerParentRowCollection(this);
                OwnerInvalidateGraphicAndStartBubbleUp();
            }
コード例 #3
0
ファイル: 3_GridTable.cs プロジェクト: prepare/HTML-Renderer
            public void Add(GridRow row)
            {
                int lastcount = rows.Count;
                row.RowIndex = lastcount;
                if (lastcount > 0)
                {
                    row.Top = rows[lastcount - 1].Bottom;
                }

                rows.Add(row);
                if (!row.IsBoundToGrid)
                {
                    foreach (GridColumn column in table.GetColumnIter())
                    {
                        column.CreateGridItemForRow(row);
                    }
                }
                row.SetOwnerParentRowCollection(this);
                OwnerInvalidateGraphicAndStartBubbleUp();
            }
コード例 #4
0
ファイル: 3_GridTable.cs プロジェクト: prepare/HTML-Renderer
            internal void InsertAfter(int afterRowId, GridRow row)
            {
                int newRowHeight = row.Height;
                row.SetOwnerParentRowCollection(this);
                row.RowIndex = afterRowId + 1;
                rows.Insert(afterRowId + 1, row);
                foreach (GridColumn coldef in table.GetColumnIter())
                {
                    coldef.InsertAfter(afterRowId, row);
                }

                int j = rows.Count;
                for (int i = afterRowId + 2; i < j; i++)
                {
                    GridRow r = rows[i];
                    r.RowIndex = i;
                }
            }