PdfShapeFormattedTextFragmentCollection
Inheritance: java.lang.Object, com.groupdocs.watermark.common.ReadOnlyListBase, com.groupdocs.watermark.common.RemoveOnlyListBase, com.groupdocs.watermark.search.FormattedTextFragmentCollection, com.groupdocs.watermark.contents.PdfFormattedTextFragmentCollection
public class PdfShapeFormattedTextFragmentCollection extends PdfFormattedTextFragmentCollection
Represents a collection of formatted text fragments in a pdf document XObject, Artifact or Annotation.
This collection contains the items of [PdfFormattedTextFragment](../../com.groupdocs.watermark.contents/pdfformattedtextfragment) type.
Methods
| Method | Description | 
|---|---|
| setText(String text) | |
| createInDocument(int index, String text, Font font, Color foregroundColor, Color backgroundColor) | 
setText(String text)
public void setText(String text)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| text | java.lang.String | 
createInDocument(int index, String text, Font font, Color foregroundColor, Color backgroundColor)
public FormattedTextFragment createInDocument(int index, String text, Font font, Color foregroundColor, Color backgroundColor)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| index | int | |
| text | java.lang.String | |
| font | Font | |
| foregroundColor | Color | |
| backgroundColor | Color | 
Returns: FormattedTextFragment