java.lang.Object
pro.verron.officestamper.experimental.ExcelParagraph
The ExcelParagraph class represents a paragraph in an Excel document.
It provides methods to replace expressions and retrieve the aggregated text over all runs.
-
Constructor Summary
ConstructorDescriptionExcelParagraph
(org.xlsx4j.sml.CTRst paragraph) Constructs a new ParagraphWrapper for the given paragraph. -
Method Summary
-
Constructor Details
-
ExcelParagraph
public ExcelParagraph(org.xlsx4j.sml.CTRst paragraph) Constructs a new ParagraphWrapper for the given paragraph.- Parameters:
paragraph
- the paragraph to wrap.
-
-
Method Details
-
replace
Replaces the given expression with the replacement object within the paragraph. The replacement object must be a valid DOCX4J Object.- Parameters:
placeholder
- the expression to be replaced.replacement
- the object to replace the expression.
-
toString
-
asString
Returns the aggregated text over all runs.- Returns:
- the text of all runs.
-