WordProcessingTextFormattedTextFragmentCollection
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.watermark.common.ReadOnlyListBase, com.groupdocs.watermark.common.RemoveOnlyListBase, com.groupdocs.watermark.search.FormattedTextFragmentCollection, com.groupdocs.watermark.contents.WordProcessingFormattedTextFragmentCollection
public class WordProcessingTextFormattedTextFragmentCollection extends WordProcessingFormattedTextFragmentCollection
Represents a collection of formatted text fragments in a Word document main text.
This collection contains the items of [WordProcessingTextFormattedTextFragment](../../com.groupdocs.watermark.contents/wordprocessingtextformattedtextfragment) type.
| Constructor | Description |
|---|---|
| WordProcessingTextFormattedTextFragmentCollection(ReplacingArgs replacingArgs, WordProcessingTextPossibleWatermark parentWatermark) |
| Method | Description |
|---|---|
| setText(String text) | |
| removeFromDocument(FormattedTextFragment item) | |
| createInDocument(int index, String text, Font font, Color foregroundColor, Color backgroundColor) |
WordProcessingTextFormattedTextFragmentCollection(ReplacingArgs replacingArgs, WordProcessingTextPossibleWatermark parentWatermark)
public WordProcessingTextFormattedTextFragmentCollection(ReplacingArgs replacingArgs, WordProcessingTextPossibleWatermark parentWatermark)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| replacingArgs | com.aspose.words.ReplacingArgs | |
| parentWatermark | WordProcessingTextPossibleWatermark |
public void setText(String text)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| text | java.lang.String |
public void removeFromDocument(FormattedTextFragment item)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | FormattedTextFragment |
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
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.