iText 8.0.5 API
iText.Layout.Renderer.BlockFormattingContextUtil Class Reference

This class helps to identify whether we are dealing with a renderer that creates a new "Block formatting context" in terms of CSS. More...

Static Public Member Functions

static bool  IsRendererCreateBfc (IRenderer renderer)
  Defines whether a renderer creates a new "Block formatting context" in terms of CSS. More...
 

Detailed Description

This class helps to identify whether we are dealing with a renderer that creates a new "Block formatting context" in terms of CSS.

This class helps to identify whether we are dealing with a renderer that creates a new "Block formatting context" in terms of CSS. Such renderers adhere to specific rules of floating elements and margins collapse handling.

https://www.w3.org/TR/CSS21/visuren.html#block-formatting

https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context

Member Function Documentation

◆ IsRendererCreateBfc()

static bool iText.Layout.Renderer.BlockFormattingContextUtil.IsRendererCreateBfc ( IRenderer  renderer )
inlinestatic

Defines whether a renderer creates a new "Block formatting context" in terms of CSS.

Defines whether a renderer creates a new "Block formatting context" in terms of CSS.

See BlockFormattingContextUtil class description for more info.

Parameters
renderer an IRenderer to be checked.
Returns
true if given renderer creates a new "Block formatting context" in terms of CSS, false otherwise.