iText 8.0.4 API
iText.Layout.Element.IElement Interface Reference

This class represents a layout element, i.e. a piece of content that will take up 'physical' space on a canvas or document. More...

Inheritance diagram for iText.Layout.Element.IElement:
iText.Layout.IPropertyContainer iText.Layout.Element.IAbstractElement iText.Layout.Element.ILargeElement iText.Layout.Element.ILeafElement iText.Layout.Element.AbstractElement< T > iText.Layout.Element.IBlockElement iText.Layout.Element.Table iText.Layout.Element.Image iText.Layout.Element.Tab iText.Layout.Element.Text iText.Forms.Form.Element.FormField< T > iText.Layout.Element.BlockElement< T > iText.Forms.Form.Element.IFormField iText.Layout.Element.BlockElement< T > iText.Svg.Element.SvgImage iText.Layout.Element.Link iText.Forms.Form.Element.FormField< T >

Public Member Functions

void  SetNextRenderer (IRenderer renderer)
  Overrides the iText.Layout.Renderer.IRenderer instance which will be returned by the next call to the GetRenderer(). More...
 
IRenderer  GetRenderer ()
  Gets a renderer for this element. More...
 
IRenderer  CreateRendererSubTree ()
  Creates a renderer subtree with root in the current element. More...
 
- Public Member Functions inherited from iText.Layout.IPropertyContainer
bool  HasProperty (int property)
  Checks if this entity has the specified property. More...
 
bool  HasOwnProperty (int property)
  Checks if this entity has the specified property, i.e. if it was set to this very element earlier More...
 
T1  GetProperty< T1 > (int property)
  Gets the property from this entity. More...
 
T1  GetOwnProperty< T1 > (int property)
  Gets own property from this entity. More...
 
T1  GetDefaultProperty< T1 > (int property)
  Gets the default property from this entity. More...
 
void  SetProperty (int property, Object value)
  Sets a property for this entity. More...
 
void  DeleteOwnProperty (int property)
  Deletes the own property of this entity. More...
 

Detailed Description

This class represents a layout element, i.e. a piece of content that will take up 'physical' space on a canvas or document.

This class represents a layout element, i.e. a piece of content that will take up 'physical' space on a canvas or document. Its presence and positioning may influence the position of other IElement s on the layout surface.

Member Function Documentation

◆ CreateRendererSubTree()

IRenderer iText.Layout.Element.IElement.CreateRendererSubTree ( )

Creates a renderer subtree with root in the current element.

Creates a renderer subtree with root in the current element. Compared to GetRenderer() , the renderer returned by this method should contain all the child renderers for children of the current element.

Returns
a renderer subtree for this element

Implemented in iText.Layout.Element.Table, and iText.Layout.Element.AbstractElement< T >.

◆ GetRenderer()

IRenderer iText.Layout.Element.IElement.GetRenderer ( )

Gets a renderer for this element.

Gets a renderer for this element. Note that this method can be called more than once. By default each element should define its own renderer, but the renderer can be overridden by SetNextRenderer(iText.Layout.Renderer.IRenderer) method call.

Returns
a renderer for this element

Implemented in iText.Layout.Element.Table, and iText.Layout.Element.AbstractElement< T >.

◆ SetNextRenderer()

void iText.Layout.Element.IElement.SetNextRenderer ( IRenderer  renderer )

Overrides the iText.Layout.Renderer.IRenderer instance which will be returned by the next call to the GetRenderer().

Parameters
renderer the renderer instance

Implemented in iText.Layout.Element.AbstractElement< T >.