CreateGridItemForRow() private method

private CreateGridItemForRow ( GridRow row ) : GridCell
row GridRow
return GridCell
Beispiel #1
0
            public void Insert(int index, GridColumn coldef)
            {
                cols.Insert(index, coldef);
                int j = cols.Count;

                for (int i = index + 1; i < j; i++)
                {
                    cols[i].ColumnIndex = i;
                }


                foreach (GridRow rowdef in this.table.GetRowIter())
                {
                    coldef.CreateGridItemForRow(rowdef);
                }
                //--------------------------------------------
                //                ContentArrangementVisitor contArrVisitor = new ContentArrangementVisitor(ownerGridLayer);
                //#if DEBUG
                //                //contArrVisitor.dbug_StartLayoutTrace("GridColumnCollection::Insert");
                //                contArrVisitor.dbug_StartLayoutTrace(dbugVisualElementLayoutMsg.GridColumnCollection_Insert);
                //#endif

                InvalidateGraphicAndStartBubbleUp();
                //OwnerGridLayer.OwnerInvalidateGraphicAndStartBubbleUp();


                //#if DEBUG
                //                contArrVisitor.dbug_EndLayoutTrace();
                //#endif
                //--------------------------------------------
            }
Beispiel #2
0
            public void Insert(int index, GridColumn coldef)
            {
                cols.Insert(index, coldef);
                int j = cols.Count;
                for (int i = index + 1; i < j; i++)
                {
                    cols[i].ColumnIndex = i;
                }


                foreach (GridRow rowdef in this.table.GetRowIter())
                {
                    coldef.CreateGridItemForRow(rowdef);
                }
                //--------------------------------------------
                //                ContentArrangementVisitor contArrVisitor = new ContentArrangementVisitor(ownerGridLayer);
                //#if DEBUG
                //                //contArrVisitor.dbug_StartLayoutTrace("GridColumnCollection::Insert");
                //                contArrVisitor.dbug_StartLayoutTrace(dbugVisualElementLayoutMsg.GridColumnCollection_Insert);
                //#endif

                InvalidateGraphicAndStartBubbleUp();
                //OwnerGridLayer.OwnerInvalidateGraphicAndStartBubbleUp();


                //#if DEBUG
                //                contArrVisitor.dbug_EndLayoutTrace();
                //#endif
                //--------------------------------------------
            }