iText 8.0.5 API
iText.Layout.Layout.LineLayoutResult Class Reference

Represents the result of a line layouting. More...

Inheritance diagram for iText.Layout.Layout.LineLayoutResult:
iText.Layout.Layout.MinMaxWidthLayoutResult iText.Layout.Layout.LayoutResult

Public Member Functions

  LineLayoutResult (int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer)
  Creates the LayoutResult result of layouting }. More...
 
  LineLayoutResult (int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer, IRenderer cause)
  Creates the LayoutResult result of layouting }. More...
 
virtual bool  IsSplitForcedByNewline ()
  Indicates whether split was forced by new line symbol in rendered text. More...
 
virtual iText.Layout.Layout.LineLayoutResult  SetSplitForcedByNewline (bool isSplitForcedByNewline)
  Sets a flat that split was forced by new line symbol in rendered text. More...
 
virtual IList< IRenderer GetFloatsOverflowedToNextPage ()
  Gets the list of floats overflowed to next page. More...
 
virtual void  SetFloatsOverflowedToNextPage (IList< IRenderer > floatsOverflowedToNextPage)
  Sets the list of floats overflowed to next page. More...
 
- Public Member Functions inherited from iText.Layout.Layout.MinMaxWidthLayoutResult
  MinMaxWidthLayoutResult (int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer)
  Creates min and max width. More...
 
  MinMaxWidthLayoutResult (int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer, IRenderer cause)
  Creates min and max width. More...
 
virtual MinMaxWidth  GetMinMaxWidth ()
  Gets min and max width. More...
 
virtual iText.Layout.Layout.MinMaxWidthLayoutResult  SetMinMaxWidth (MinMaxWidth minMaxWidth)
  Sets min and max width. More...
 
- Public Member Functions inherited from iText.Layout.Layout.LayoutResult
  LayoutResult (int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer)
  Creates the LayoutResult result of layouting }. More...
 
  LayoutResult (int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer, IRenderer cause)
  Creates the LayoutResult result of layouting }. More...
 
virtual int  GetStatus ()
  Gets the status of iText.Layout.Renderer.IRenderer.Layout(LayoutContext). More...
 
virtual void  SetStatus (int status)
  Sets the status of iText.Layout.Renderer.IRenderer.Layout(LayoutContext). More...
 
virtual LayoutArea  GetOccupiedArea ()
  Gets the layout area occupied by the content during layouting. More...
 
virtual IRenderer  GetSplitRenderer ()
  Gets the split renderer created during layouting. More...
 
virtual void  SetSplitRenderer (IRenderer splitRenderer)
  Sets the split renderer. More...
 
virtual IRenderer  GetOverflowRenderer ()
  Gets the overflow renderer created during layouting. More...
 
virtual void  SetOverflowRenderer (IRenderer overflowRenderer)
  Sets the overflow renderer. More...
 
virtual AreaBreak  GetAreaBreak ()
  Gets areaBreak value. More...
 
virtual iText.Layout.Layout.LayoutResult  SetAreaBreak (AreaBreak areaBreak)
  Sets areaBreak value. More...
 
virtual IRenderer  GetCauseOfNothing ()
  Gets the first renderer to produce NOTHING during iText.Layout.Renderer.IRenderer.Layout(LayoutContext) More...
 
override String  ToString ()
 

Package Attributes

bool  splitForcedByNewline
  Indicates whether split was forced by new line symbol or not. More...
 
- Package Attributes inherited from iText.Layout.Layout.MinMaxWidthLayoutResult
MinMaxWidth  minMaxWidth
  The iText.Layout.Minmaxwidth.MinMaxWidth value of min and max width. More...
 
- Package Attributes inherited from iText.Layout.Layout.LayoutResult
int  status
  The status of iText.Layout.Renderer.IRenderer.Layout(LayoutContext) which indicates whether the content was added or not and, if yes, was it added fully or partially. More...
 
LayoutArea  occupiedArea
  The area occupied by the content during its layouting. More...
 
IRenderer  splitRenderer
  The split renderer created during layouting. More...
 
IRenderer  overflowRenderer
  The overflow renderer created during layouting. More...
 
AreaBreak  areaBreak
  The iText.Layout.Element.AreaBreak that will be rendered by this object. More...
 
IRenderer  causeOfNothing
  The first renderer to produce NOTHING during iText.Layout.Renderer.IRenderer.Layout(LayoutContext). More...
 

Additional Inherited Members

- Static Public Attributes inherited from iText.Layout.Layout.LayoutResult
const int  FULL = 1
  The status of iText.Layout.Renderer.IRenderer.Layout(LayoutContext) which indicates that the content was fully placed. More...
 
const int  PARTIAL = 2
  The status of iText.Layout.Renderer.IRenderer.Layout(LayoutContext) which indicates that the content was placed partially. More...
 
const int  NOTHING = 3
  The status of iText.Layout.Renderer.IRenderer.Layout(LayoutContext) which indicates that the content was not placed. More...
 

Detailed Description

Represents the result of a line layouting.

Constructor & Destructor Documentation

◆ LineLayoutResult() [1/2]

iText.Layout.Layout.LineLayoutResult.LineLayoutResult ( int  status,
LayoutArea  occupiedArea,
IRenderer  splitRenderer,
IRenderer  overflowRenderer 
)
inline

Creates the LayoutResult result of layouting }.

Creates the LayoutResult result of layouting }. The LayoutResult.causeOfNothing will be set as null.

Parameters
status the status of iText.Layout.Renderer.LineRenderer.Layout(LayoutContext)
occupiedArea the area occupied by the content
splitRenderer the renderer to draw the splitted part of the content
overflowRenderer the renderer to draw the overflowed part of the content

◆ LineLayoutResult() [2/2]

iText.Layout.Layout.LineLayoutResult.LineLayoutResult ( int  status,
LayoutArea  occupiedArea,
IRenderer  splitRenderer,
IRenderer  overflowRenderer,
IRenderer  cause 
)
inline

Creates the LayoutResult result of layouting }.

Parameters
status the status of iText.Layout.Renderer.LineRenderer.Layout(LayoutContext)
occupiedArea the area occupied by the content
splitRenderer the renderer to draw the splitted part of the content
overflowRenderer the renderer to draw the overflowed part of the content
cause the first renderer to produce LayoutResult.NOTHING

Member Function Documentation

◆ GetFloatsOverflowedToNextPage()

virtual IList<IRenderer> iText.Layout.Layout.LineLayoutResult.GetFloatsOverflowedToNextPage ( )
inlinevirtual

Gets the list of floats overflowed to next page.

Returns
list of floats overflowed to next page

◆ IsSplitForcedByNewline()

virtual bool iText.Layout.Layout.LineLayoutResult.IsSplitForcedByNewline ( )
inlinevirtual

Indicates whether split was forced by new line symbol in rendered text.

Indicates whether split was forced by new line symbol in rendered text. The value will be set as true if, for example, the rendered text of one of the child renderers contains '
' symbol.

Returns
whether split was forced by new line or not

◆ SetFloatsOverflowedToNextPage()

virtual void iText.Layout.Layout.LineLayoutResult.SetFloatsOverflowedToNextPage ( IList< IRenderer floatsOverflowedToNextPage )
inlinevirtual

Sets the list of floats overflowed to next page.

Parameters
floatsOverflowedToNextPage the floats overflowed to next page

◆ SetSplitForcedByNewline()

virtual iText.Layout.Layout.LineLayoutResult iText.Layout.Layout.LineLayoutResult.SetSplitForcedByNewline ( bool  isSplitForcedByNewline )
inlinevirtual

Sets a flat that split was forced by new line symbol in rendered text.

Parameters
isSplitForcedByNewline indicates that split was forced by new line symbol in rendered text.
Returns

this layout result the setting was applied on.

Member Data Documentation

◆ splitForcedByNewline

bool iText.Layout.Layout.LineLayoutResult.splitForcedByNewline
package

Indicates whether split was forced by new line symbol or not.