/// <summary> /// Measures the bounds of box and children, recursively. /// </summary> /// <param name="g">Device context to draw</param> public void PerformLayout(Graphics g) { ArgChecker.AssertArgNotNull(g, "g"); using (var ig = new GraphicsAdapter(g, _useGdiPlusTextRendering)) { _htmlContainerInt.PerformLayout(ig); _htmlContainerInt.GetPages(); } }