Java org.apache.poi.xwpf.usermodel XWPFParagraph fields, constructors, methods, implement or subclass

Example usage for Java org.apache.poi.xwpf.usermodel XWPFParagraph fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.poi.xwpf.usermodel XWPFParagraph.

The text is from its open source code.

Subclass

org.apache.poi.xwpf.usermodel.XWPFParagraph has subclasses.
Click this link to see all its subclasses.

Constructor

Method

XWPFRuncreateRun()
Appends a new run to this paragraph
ParagraphAlignmentgetAlignment()
Returns the paragraph alignment which shall be applied to text in this paragraph.
IBodygetBody()
BordersgetBorderBetween()
Specifies the border which shall be displayed between each paragraph in a set of paragraphs which have the same set of paragraph border settings.
BordersgetBorderBottom()
Specifies the border which shall be displayed below a set of paragraphs which have the same set of paragraph border settings.
BordersgetBorderLeft()
Specifies the border which shall be displayed on the left side of the page around the specified paragraph.
BordersgetBorderRight()
Specifies the border which shall be displayed on the right side of the page around the specified paragraph.
BordersgetBorderTop()
Specifies the border which shall be displayed above a set of paragraphs which have the same set of paragraph border settings.
CTPgetCTP()
XWPFDocumentgetDocument()
BodyElementTypegetElementType()
returns the type of the BodyElement Paragraph
StringgetFootnoteText()
Returns the footnote text of the paragraph
intgetIndentationFirstLine()
Specifies the additional indentation which shall be applied to the first line of the parent paragraph.
intgetIndentationHanging()
Specifies the indentation which shall be removed from the first line of the parent paragraph, by moving the indentation on the first line back towards the beginning of the direction of text flow.
intgetIndentationLeft()
Specifies the indentation which shall be placed between the left text margin for this paragraph and the left edge of that paragraph's content in a left to right paragraph, and the right text margin and the right edge of that paragraph's text in a right to left paragraph

If this attribute is omitted, its value shall be assumed to be zero.

intgetIndentationRight()
Specifies the indentation which shall be placed between the right text margin for this paragraph and the right edge of that paragraph's content in a left to right paragraph, and the right text margin and the right edge of that paragraph's text in a right to left paragraph

If this attribute is omitted, its value shall be assumed to be zero.

ListgetIRuns()
Return literal runs and sdt/content control objects.
StringgetNumFmt()
Returns numbering format for this paragraph, eg bullet or lowerLetter.
BigIntegergetNumID()
If style exist for this paragraph NumId of the paragraph will be returned.
BigIntegergetNumIlvl()
Returns Ilvl of the numeric style for this paragraph.
StringgetParagraphText()
Returns the text of the paragraph, but not of any objects in the paragraph
BodyTypegetPartType()
returns the partType of the bodyPart which owns the bodyElement
ListgetRuns()
intgetSpacingAfter()
Specifies the spacing that should be added after the last line in this paragraph in the document in absolute units.
intgetSpacingAfterLines()
Specifies the spacing that should be added after the last line in this paragraph in the document in absolute units.
intgetSpacingBefore()
Specifies the spacing that should be added above the first line in this paragraph in the document in absolute units.
intgetSpacingBeforeLines()
Specifies the spacing that should be added before the first line in this paragraph in the document in line units.
LineSpacingRulegetSpacingLineRule()
Specifies how the spacing between lines is calculated as stored in the line attribute.
StringgetStyle()
StringgetStyleID()
Return styleID of the paragraph if style exist for this paragraph if not, null will be returned
StringgetText()
Return the textual content of the paragraph, including text from pictures and sdt elements in it.
TextAlignmentgetVerticalAlignment()
Returns the text vertical alignment which shall be applied to text in this paragraph.
XWPFRuninsertNewRun(int pos)
insert a new Run in RunArray
booleanremoveRun(int pos)
removes a Run at the position pos in the paragraph
TextSegmentsearchText(String searched, PositionInParagraph startPos)
this methods parse the paragraph and search for the string searched.
voidsetAlignment(ParagraphAlignment align)
Specifies the paragraph alignment which shall be applied to text in this paragraph.
voidsetBorderBetween(Borders border)
Specifies the border which shall be displayed between each paragraph in a set of paragraphs which have the same set of paragraph border settings.
voidsetBorderBottom(Borders border)
Specifies the border which shall be displayed below a set of paragraphs which have the same set of paragraph border settings.
voidsetBorderLeft(Borders border)
Specifies the border which shall be displayed on the left side of the page around the specified paragraph.
voidsetBorderRight(Borders border)
Specifies the border which shall be displayed on the right side of the page around the specified paragraph.
voidsetBorderTop(Borders border)
Specifies the border which shall be displayed above a set of paragraphs which have the same set of paragraph border settings.
voidsetIndentationFirstLine(int indentation)
Specifies the additional indentation which shall be applied to the first line of the parent paragraph.
voidsetIndentationLeft(int indentation)
Specifies the indentation which shall be placed between the left text margin for this paragraph and the left edge of that paragraph's content in a left to right paragraph, and the right text margin and the right edge of that paragraph's text in a right to left paragraph

If this attribute is omitted, its value shall be assumed to be zero.

voidsetNumID(BigInteger numPos)
setNumID of Paragraph
voidsetPageBreak(boolean pageBreak)
Specifies that when rendering this document in a paginated view, the contents of this paragraph are rendered on the start of a new page in the document.
voidsetSpacingAfter(int spaces)
Specifies the spacing that should be added after the last line in this paragraph in the document in absolute units.
voidsetSpacingBefore(int spaces)
Specifies the spacing that should be added above the first line in this paragraph in the document in absolute units.
voidsetSpacingLineRule(LineSpacingRule rule)
Specifies how the spacing between lines is calculated as stored in the line attribute.
voidsetStyle(String styleId)
Set the style ID for the paragraph
voidsetVerticalAlignment(TextAlignment valign)
Specifies the text vertical alignment which shall be applied to text in this paragraph.
voidsetWordWrap(boolean wrap)
voidsetWordWrapped(boolean wrap)
This element specifies whether a consumer shall break Latin text which exceeds the text extents of a line by breaking the word across two lines (breaking on the character level) or by moving the word to the following line (breaking on the word level).