Table of Contents

Class LinkRenderer

Namespace
iText.Layout.Renderer
Assembly
itext.layout.dll
public class LinkRenderer : TextRenderer, ILeafElementRenderer, IRenderer, IPropertyContainer
Inheritance
LinkRenderer
Implements
Inherited Members

Constructors

Creates a LinkRenderer from its corresponding layout object.

public LinkRenderer(Link link)

Parameters

link Link

the Link which this object should manage

Creates a LinkRenderer from its corresponding layout object, with a custom text to replace the contents of the Link.

public LinkRenderer(Link linkElement, string text)

Parameters

linkElement Link

the Link which this object should manage

text string

the replacement text

Methods

Draw(DrawContext)

public override void Draw(DrawContext drawContext)

Parameters

drawContext DrawContext

GetNextRenderer()

Gets a new instance of this class to be used as a next renderer, after this renderer is used, if Layout(LayoutContext) is called more than once.

public override IRenderer GetNextRenderer()

Returns

IRenderer

new renderer instance

Remarks

Gets a new instance of this class to be used as a next renderer, after this renderer is used, if Layout(LayoutContext) is called more than once.

If a renderer overflows to the next area, iText uses this method to create a renderer for the overflow part. So if one wants to extend LinkRenderer , one should override this method: otherwise the default method will be used and thus the default rather than the custom renderer will be created.