Class LinkRenderer
public class LinkRenderer : TextRenderer, ILeafElementRenderer, IRenderer, IPropertyContainer
- Inheritance
-
LinkRenderer
- Implements
- Inherited Members
Constructors
LinkRenderer(Link)
Creates a LinkRenderer from its corresponding layout object.
public LinkRenderer(Link link)
Parameters
LinkRenderer(Link, string)
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
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.