Exemplo n.º 1
0
 /// <summary>Terminates the current element, usually a page.</summary>
 /// <remarks>
 /// Terminates the current element, usually a page. Sets the next element
 /// to be the size specified in the argument.
 /// </remarks>
 /// <param name="areaBreak">
 /// an
 /// <see cref="iText.Layout.Element.AreaBreak"/>
 /// , optionally with a specified size
 /// </param>
 /// <returns>this element</returns>
 public virtual iText.Layout.Document Add(AreaBreak areaBreak)
 {
     CheckClosingStatus();
     childElements.Add(areaBreak);
     EnsureRootRendererNotNull().AddChild(areaBreak.CreateRendererSubTree());
     if (immediateFlush)
     {
         childElements.JRemoveAt(childElements.Count - 1);
     }
     return(this);
 }
Exemplo n.º 2
0
 /// <summary>Terminates the current element, usually a page.</summary>
 /// <remarks>
 /// Terminates the current element, usually a page. Sets the next element
 /// to be the size specified in the argument.
 /// </remarks>
 /// <param name="areaBreak">
 /// an
 /// <see cref="iText.Layout.Element.AreaBreak"/>
 /// , optionally with a specified size
 /// </param>
 /// <returns>this element</returns>
 public virtual iText.Layout.Document Add(AreaBreak areaBreak)
 {
     childElements.Add(areaBreak);
     EnsureRootRendererNotNull().AddChild(areaBreak.CreateRendererSubTree());
     return(this);
 }