LinkElement

Inheritance: java.lang.Object, com.aspose.pdf.tagged.logicalstructure.elements.Element, com.aspose.pdf.tagged.logicalstructure.elements.StructureElement, com.aspose.pdf.tagged.logicalstructure.elements.ils.ILSElement, com.aspose.pdf.tagged.logicalstructure.elements.ils.AnnotationElement

All Implemented Interfaces: com.aspose.pdf.tagged.logicalstructure.elements.ITextElement

public final class LinkElement extends AnnotationElement implements ITextElement

Represents Link structure element in logical structure.

Constructors

ConstructorDescription
LinkElement(TaggedContext taggedContext, IPdfPrimitive pdfEngineEntity)

Methods

MethodDescription
getHyperlink()Gets or Sets Hyperlink for Link Element.
setHyperlink(Hyperlink value)Gets or Sets Hyperlink for Link Element.
getStructureTextState()Gets /Aspose.Pdf.LogicalStructure.StructureTextState object for current element.
setText(String text)Appends text content to current text element.

LinkElement(TaggedContext taggedContext, IPdfPrimitive pdfEngineEntity)

public LinkElement(TaggedContext taggedContext, IPdfPrimitive pdfEngineEntity)

Parameters:

ParameterTypeDescription
taggedContextTaggedContext
pdfEngineEntityIPdfPrimitive
public final Hyperlink getHyperlink()

Gets or Sets Hyperlink for Link Element.

Returns: Hyperlink - Hyperlink instance

public final void setHyperlink(Hyperlink value)

Gets or Sets Hyperlink for Link Element.

Parameters:

ParameterTypeDescription
valueHyperlinkHyperlink instance

getStructureTextState()

public final StructureTextState getStructureTextState()

Gets /Aspose.Pdf.LogicalStructure.StructureTextState object for current element.

Value: /Aspose.Pdf.LogicalStructure.StructureTextState object for current element.

Returns: StructureTextState

setText(String text)

public final void setText(String text)

Appends text content to current text element.

Parameters:

ParameterTypeDescription
textjava.lang.StringText content.