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

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

Introduction

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

The text is from its open source code.

Constructor

Method

voidaddBreak()
Specifies that a break shall be placed at the current location in the run content.
voidaddBreak(BreakType type)
Specifies that a break shall be placed at the current location in the run content.
voidaddBreak(BreakClear clear)
Specifies that a break shall be placed at the current location in the run content.
voidaddCarriageReturn()
Specifies that a carriage return shall be placed at the current location in the run content.
XWPFPictureaddPicture(InputStream pictureData, int pictureType, String filename, int width, int height)
Adds a picture to the run.
voidaddTab()
Specifies that a tab shall be placed at the current location in the run content.
intgetCharacterSpacing()
StringgetColor()
Get text color.
CTRgetCTR()
Get the currently used CTR object
XWPFDocumentgetDocument()
ListgetEmbeddedPictures()
Returns the embedded pictures of the run.
StringgetFontFamily()
Gets the fonts which shall be used to display the text contents of this run.
intgetFontSize()
Specifies the font size which shall be applied to all non complex script characters in the contents of this run when displayed.
intgetKerning()
XWPFParagraphgetParagraph()
Get the currently referenced paragraph, or null if a SDT object
IRunBodygetParent()
Get the currently referenced paragraph/SDT object
StringgetPictureText()
Returns text embedded in pictures
VerticalAligngetSubscript()
Specifies the alignment which shall be applied to the contents of this run in relation to the default appearance of the run's text.
StringgetText(int pos)
Return the string content of this text run
intgetTextPosition()
This element specifies the amount by which text shall be raised or lowered for this run in relation to the default baseline of the surrounding non-positioned text.
UnderlinePatternsgetUnderline()
Get the underline setting for the run.
STVerticalAlignRun.EnumgetVerticalAlignment()
Get the vertical alignment value
booleanisBold()
Whether the bold property shall be applied to all non-complex script characters in the contents of this run when displayed in a document
booleanisCapitalized()
booleanisDoubleStrikeThrough()
Specifies that the contents of this run shall be displayed with a double horizontal line through the center of the line.
booleanisEmbossed()
booleanisHighlighted()
booleanisImprinted()
booleanisItalic()
Whether the italic property should be applied to all non-complex script characters in the contents of this run when displayed in a document.
booleanisShadowed()
booleanisSmallCaps()
booleanisStrike()
booleanisStrikeThrough()
Specifies that the contents of this run shall be displayed with a single horizontal line through the center of the line.
voidsetBold(boolean value)
Whether the bold property shall be applied to all non-complex script characters in the contents of this run when displayed in a document.
voidsetCapitalized(boolean value)
voidsetCharacterSpacing(int twips)
voidsetColor(String rgbStr)
Set text color.
voidsetDoubleStrikethrough(boolean value)
Specifies that the contents of this run shall be displayed with a double horizontal line through the center of the line.
voidsetEmbossed(boolean value)
voidsetFontFamily(String fontFamily)
Specifies the fonts which shall be used to display the text contents of this run.
voidsetFontSize(int size)
Specifies the font size which shall be applied to all non complex script characters in the contents of this run when displayed.
voidsetImprinted(boolean value)
voidsetItalic(boolean value)
Whether the bold property shall be applied to all non-complex script characters in the contents of this run when displayed in a document

This formatting property is a toggle property, which specifies that its behavior differs between its use within a style definition and its use as direct formatting.

voidsetKerning(int kern)
voidsetShadow(boolean value)
voidsetSmallCaps(boolean value)
voidsetStrike(boolean value)
voidsetStrikeThrough(boolean value)
Specifies that the contents of this run shall be displayed with a single horizontal line through the center of the line.
voidsetSubscript(VerticalAlign valign)
Specifies the alignment which shall be applied to the contents of this run in relation to the default appearance of the run's text.
voidsetText(String value)
Sets the text of this text run
voidsetText(String value, int pos)
Sets the text of this text run in the
voidsetTextPosition(int val)
This element specifies the amount by which text shall be raised or lowered for this run in relation to the default baseline of the surrounding non-positioned text.
voidsetUnderline(UnderlinePatterns value)
Specifies that the contents of this run should be displayed along with an underline appearing directly below the character height.
voidsetVerticalAlignment(String verticalAlignment)
Set the vertical alignment of the run.
Stringtext()
Returns the string version of the text, with tabs and carriage returns in place of their xml equivalents.
StringtoString()
Returns the string version of the text and the phonetic string