SpreadsheetCellFormattedTextFragmentCollection
Contents
[
Hide
]
Inheritance: java.lang.Object, com.groupdocs.watermark.common.ReadOnlyListBase, com.groupdocs.watermark.common.RemoveOnlyListBase, com.groupdocs.watermark.search.FormattedTextFragmentCollection
public class SpreadsheetCellFormattedTextFragmentCollection extends FormattedTextFragmentCollection
Represents a collection of formatted text fragments in an Excel document cell.
This collection contains the items of [SpreadsheetCellFormattedTextFragment](../../com.groupdocs.watermark.contents/spreadsheetcellformattedtextfragment) type.
Constructors
| Constructor | Description |
|---|---|
| SpreadsheetCellFormattedTextFragmentCollection(Cell cell) |
Methods
| Method | Description |
|---|---|
| getText() | |
| removeFromDocument(FormattedTextFragment item) | |
| createInDocument(int index, String text, Font font, Color foregroundColor, Color backgroundColor) | |
| setText(String text) |
SpreadsheetCellFormattedTextFragmentCollection(Cell cell)
public SpreadsheetCellFormattedTextFragmentCollection(Cell cell)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| cell | com.aspose.cells.Cell |
getText()
public String getText()
Returns: java.lang.String
removeFromDocument(FormattedTextFragment item)
public void removeFromDocument(FormattedTextFragment item)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | FormattedTextFragment |
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
setText(String text)
public void setText(String text)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| text | java.lang.String |