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
Constructor | Description |
---|---|
LinkElement(TaggedContext taggedContext, IPdfPrimitive pdfEngineEntity) |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
taggedContext | TaggedContext | |
pdfEngineEntity | IPdfPrimitive |
getHyperlink()
public final Hyperlink getHyperlink()
Gets or Sets Hyperlink for Link Element.
Returns: Hyperlink - Hyperlink instance
setHyperlink(Hyperlink value)
public final void setHyperlink(Hyperlink value)
Gets or Sets Hyperlink for Link Element.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Hyperlink | Hyperlink 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:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text content. |