public override Layout DoPageBreak() { using (new TraceContextPusher(_generator, _traceContext)) { Trace("split index {0}", _pageSplitIndex); // Actually we don't really want to split at all - we just want to // truncate ourself and let the next layout start at the top of the // next page. We don't want to start a page with a space. So always // return a valid empty layout of the same type as ourself, with // zero height. SpaceLayout copy = new SpaceLayout(this); copy._height = 0; return(copy); } }
/// <summary> /// Copy constructor used during layout expansion and page break handling. /// </summary> public SpaceLayout(SpaceLayout src) : base(src) { _height = src._height; }
private void RenderSpace(SpaceLayout layout, IContentContainer container) { }