InsertChild() public method

public InsertChild ( CssBox beforeBox, CssBox box ) : void
beforeBox CssBox
box CssBox
return void
Exemplo n.º 1
0
 static CssBox CreateAnonBlock(CssBox parent, CssBox insertBefore)
 {
     //auto gen by layout engine ***
     var newBox = new CssBox(CssBox.UnsafeGetBoxSpec(parent).GetAnonVersion(), parent.RootGfx);
     CssBox.ChangeDisplayType(newBox, Css.CssDisplay.Block);
     parent.InsertChild(insertBefore, newBox);
     return newBox;
 }