Class DOCXParaRPr
- All Implemented Interfaces:
ICTElement,IDOCXRPr
Run Properties under Paragraph Definition.
Represents w:rPr in xml.
- Author:
- Jamson Chan
-
Constructor Summary
ConstructorsConstructorDescriptionDOCXParaRPr(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTParaRPr rPr, DOCXPPr parent) Create a new ParagraphRunProperties by given CTParaRPr. -
Method Summary
Modifier and TypeMethodDescriptiongetBdr()Returns the border of the text.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTColorgetColor()Returns the color of the text.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTParaRPrgetCT()Returns the CT object of current element.org.openxmlformats.schemas.wordprocessingml.x2006.main.STEm.EnumgetEm()Returns the emphasis mark of the text.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFitTextReturns the manual run width of the text.org.openxmlformats.schemas.wordprocessingml.x2006.main.STHighlightColor.EnumReturns the highlight color of the text.getKern()Returns the kerning of the text.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTLanguagegetLang()Returns the language of the text.Returns the parent paragraph properties.Returns the vertically raised or lowered text.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFontsReturns the font of the text.Returns the run style of the text.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShdgetShd()Returns the shading of the text.Returns the spacing of the text.getSz()Returns the font size of the text.getSzCs()Returns the font size of the text in complex script.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTUnderlinegetU()Returns the underline style of the text.org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STVerticalAlignRun.EnumReturns the vertical alignment.getW()Returns the character scale.booleanisB()Returns whether the text is bold.booleanisBCs()Returns whether the text is bold in complex script.booleanisCaps()Returns whether the text is capitalized.booleanisCs()Returns whether the text is complex script.booleanReturns whether the text is double strike through.booleanisEmboss()Returns whether the text is embossed.booleanisI()Returns whether the text is italic.booleanisICs()Returns whether the text is italic in complex script.booleanReturns whether the text is imprinted.booleanReturns whether the text is no proof.booleanisOMath()Returns whether the text is office math.booleanReturns whether the text is outline.booleanisRtl()Returns whether the text is right to left.booleanisShadow()Returns whether the text is shadow.booleanReturns whether the text is small caps.booleanReturns whether to use document grid settings for Inter-Character spacing.booleanReturns whether the text is spec vanish.booleanisStrike()Returns whether the text is strike through.booleanisVanish()Returns whether the text is vanished.booleanReturns whether the text is web hidden.voidsetB(boolean b) Sets whether the text is bold.voidsetBCs(boolean bCs) Sets whether the text is bold in complex script.voidsetBdr(DOCXBorder bdr) Sets the border of the text.voidsetCaps(boolean caps) Sets whether the text is capitalized.voidsetColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTColor color) Sets the color of the text.voidsetCs(boolean cs) Sets whether the text is complex script.voidsetDstrike(boolean dstrike) Sets whether the text is double strike through.voidsetEm(org.openxmlformats.schemas.wordprocessingml.x2006.main.STEm.Enum em) Sets the emphasis mark of the text.voidsetEmboss(boolean emboss) Sets whether the text is embossed.voidsetFitText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFitText fitText) Sets the manual run width of the text.voidsetHighlight(org.openxmlformats.schemas.wordprocessingml.x2006.main.STHighlightColor.Enum highlight) Sets the highlight color of the text.voidsetI(boolean i) Sets whether the text is italic.voidsetICs(boolean iCs) Sets whether the text is italic in complex script.voidsetImprint(boolean imprint) Sets whether the text is imprinted.voidSets the kerning of the text.voidsetLang(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTLanguage lang) Sets the language of the text.voidsetNoProof(boolean noProof) Sets whether the text is no proof.voidsetOMath(boolean oMath) Sets whether the text is office math.voidsetOutline(boolean outline) Sets whether the text is outline.voidSets the parent paragraph properties.voidsetPosition(Double position) Sets the vertically raised or lowered text.voidsetRFonts(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFonts rFonts) Sets the font of the text.voidSets the run style of the text.voidsetRtl(boolean rtl) Sets whether the text is right to left.voidsetShadow(boolean shadow) Sets whether the text is shadow.voidsetShd(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd shd) Sets the shading of the text.voidsetSmallCaps(boolean smallCaps) Sets whether the text is small caps.voidsetSnapToGrid(boolean snapToGrid) Sets whether to use document grid settings for Inter-Character spacing.voidsetSpacing(Double spacing) Sets the spacing of the text.voidsetSpecVanish(boolean specVanish) Sets whether the text is spec vanish.voidsetStrike(boolean strike) Sets whether the text is strike through.voidSets the font size of the text.voidSets the font size of the text in complex script.voidsetU(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTUnderline u) Sets the underline style of the text.voidsetVanish(boolean vanish) Sets whether the text is vanished.voidsetVertAlign(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STVerticalAlignRun.Enum vertAlign) Sets the vertical alignment.voidSets the character scale.voidsetWebHidden(boolean webHidden) Sets whether the text is web hidden.
-
Constructor Details
-
DOCXParaRPr
public DOCXParaRPr(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTParaRPr rPr, DOCXPPr parent) Create a new ParagraphRunProperties by given CTParaRPr.- Parameters:
rPr- the CTParaRPr object.parent- the parent ParagraphProperties object.
-
-
Method Details
-
getCT
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTParaRPr getCT()Description copied from interface:ICTElementReturns the CT object of current element.- Specified by:
getCTin interfaceICTElement
-
getParent
Returns the parent paragraph properties.- Returns:
- the parent paragraph properties.
-
setParent
Sets the parent paragraph properties.- Parameters:
parent- the parent paragraph properties.
-
isB
public boolean isB()Description copied from interface:IDOCXRPrReturns whether the text is bold.Represents the following element tag in the schema:
w:b. -
setB
public void setB(boolean b) Description copied from interface:IDOCXRPrSets whether the text is bold.Represents the following element tag in the schema:
w:b. -
isBCs
public boolean isBCs()Description copied from interface:IDOCXRPrReturns whether the text is bold in complex script.Represents the following element tag in the schema:
w:bCs. -
setBCs
public void setBCs(boolean bCs) Description copied from interface:IDOCXRPrSets whether the text is bold in complex script.Represents the following element tag in the schema:
w:bCs. -
getBdr
Description copied from interface:IDOCXRPrReturns the border of the text.Represents the following element tag in the schema:
w:bdr. -
setBdr
Description copied from interface:IDOCXRPrSets the border of the text.Represents the following element tag in the schema:
w:bdr. -
isCaps
public boolean isCaps()Description copied from interface:IDOCXRPrReturns whether the text is capitalized.Represents the following element tag in the schema:
w:caps. -
setCaps
public void setCaps(boolean caps) Description copied from interface:IDOCXRPrSets whether the text is capitalized.Represents the following element tag in the schema:
w:caps. -
getColor
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTColor getColor()Description copied from interface:IDOCXRPrReturns the color of the text.Represents the following element tag in the schema:
w:color. -
setColor
public void setColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTColor color) Description copied from interface:IDOCXRPrSets the color of the text.Represents the following element tag in the schema:
w:color. -
isCs
public boolean isCs()Description copied from interface:IDOCXRPrReturns whether the text is complex script.Represents the following element tag in the schema:
w:cs. -
setCs
public void setCs(boolean cs) Description copied from interface:IDOCXRPrSets whether the text is complex script.Represents the following element tag in the schema:
w:cs. -
isDstrike
public boolean isDstrike()Description copied from interface:IDOCXRPrReturns whether the text is double strike through.Represents the following element tag in the schema:
w:dstrike. -
setDstrike
public void setDstrike(boolean dstrike) Description copied from interface:IDOCXRPrSets whether the text is double strike through.Represents the following element tag in the schema:
w:dstrike.- Specified by:
setDstrikein interfaceIDOCXRPr- Parameters:
dstrike- whether the text is double strike through.
-
getEm
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STEm.Enum getEm()Description copied from interface:IDOCXRPrReturns the emphasis mark of the text.Represents the following element tag in the schema:
w:em. -
setEm
public void setEm(org.openxmlformats.schemas.wordprocessingml.x2006.main.STEm.Enum em) Description copied from interface:IDOCXRPrSets the emphasis mark of the text.Represents the following element tag in the schema:
w:em. -
isEmboss
public boolean isEmboss()Description copied from interface:IDOCXRPrReturns whether the text is embossed.Represents the following element tag in the schema:
w:emboss. -
setEmboss
public void setEmboss(boolean emboss) Description copied from interface:IDOCXRPrSets whether the text is embossed.Represents the following element tag in the schema:
w:emboss. -
getFitText
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFitText getFitText()Description copied from interface:IDOCXRPrReturns the manual run width of the text.Represents the following element tag in the schema:
w:fitText.- Specified by:
getFitTextin interfaceIDOCXRPr- Returns:
- the manual run width of the text.
-
setFitText
public void setFitText(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFitText fitText) Description copied from interface:IDOCXRPrSets the manual run width of the text.Represents the following element tag in the schema:
w:fitText.- Specified by:
setFitTextin interfaceIDOCXRPr- Parameters:
fitText- the manual run width of the text.
-
getHighlight
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STHighlightColor.Enum getHighlight()Description copied from interface:IDOCXRPrReturns the highlight color of the text.Represents the following element tag in the schema:
w:highlight.- Specified by:
getHighlightin interfaceIDOCXRPr- Returns:
- the highlight color of the text.
-
setHighlight
public void setHighlight(org.openxmlformats.schemas.wordprocessingml.x2006.main.STHighlightColor.Enum highlight) Description copied from interface:IDOCXRPrSets the highlight color of the text.Represents the following element tag in the schema:
w:highlight.- Specified by:
setHighlightin interfaceIDOCXRPr- Parameters:
highlight- the highlight color of the text.
-
isI
public boolean isI()Description copied from interface:IDOCXRPrReturns whether the text is italic.Represents the following element tag in the schema:
w:i. -
setI
public void setI(boolean i) Description copied from interface:IDOCXRPrSets whether the text is italic.Represents the following element tag in the schema:
w:i. -
isICs
public boolean isICs()Description copied from interface:IDOCXRPrReturns whether the text is italic in complex script.Represents the following element tag in the schema:
w:iCs. -
setICs
public void setICs(boolean iCs) Description copied from interface:IDOCXRPrSets whether the text is italic in complex script.Represents the following element tag in the schema:
w:iCs. -
isImprint
public boolean isImprint()Description copied from interface:IDOCXRPrReturns whether the text is imprinted.Represents the following element tag in the schema:
w:imprint. -
setImprint
public void setImprint(boolean imprint) Description copied from interface:IDOCXRPrSets whether the text is imprinted.Represents the following element tag in the schema:
w:imprint.- Specified by:
setImprintin interfaceIDOCXRPr- Parameters:
imprint- whether the text is imprinted.
-
getKern
Description copied from interface:IDOCXRPrReturns the kerning of the text.Represents the following element tag in the schema:
w:kern. -
setKern
Description copied from interface:IDOCXRPrSets the kerning of the text.Represents the following element tag in the schema:
w:kern. -
getLang
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTLanguage getLang()Description copied from interface:IDOCXRPrReturns the language of the text.Represents the following element tag in the schema:
w:lang. -
setLang
public void setLang(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTLanguage lang) Description copied from interface:IDOCXRPrSets the language of the text.Represents the following element tag in the schema:
w:lang. -
isNoProof
public boolean isNoProof()Description copied from interface:IDOCXRPrReturns whether the text is no proof.Represents the following element tag in the schema:
w:noProof. -
setNoProof
public void setNoProof(boolean noProof) Description copied from interface:IDOCXRPrSets whether the text is no proof.Represents the following element tag in the schema:
w:noProof.- Specified by:
setNoProofin interfaceIDOCXRPr- Parameters:
noProof- whether the text is no proof.
-
isOMath
public boolean isOMath()Description copied from interface:IDOCXRPrReturns whether the text is office math.Represents the following element tag in the schema:
w:oMath. -
setOMath
public void setOMath(boolean oMath) Description copied from interface:IDOCXRPrSets whether the text is office math.Represents the following element tag in the schema:
w:oMath. -
isOutline
public boolean isOutline()Description copied from interface:IDOCXRPrReturns whether the text is outline.Represents the following element tag in the schema:
w:outline. -
setOutline
public void setOutline(boolean outline) Description copied from interface:IDOCXRPrSets whether the text is outline.Represents the following element tag in the schema:
w:outline.- Specified by:
setOutlinein interfaceIDOCXRPr- Parameters:
outline- whether the text is outline.
-
getPosition
Description copied from interface:IDOCXRPrReturns the vertically raised or lowered text.Represents the following element tag in the schema:
w:position.- Specified by:
getPositionin interfaceIDOCXRPr- Returns:
- the vertically raised or lowered text.
-
setPosition
Description copied from interface:IDOCXRPrSets the vertically raised or lowered text.Represents the following element tag in the schema:
w:position.- Specified by:
setPositionin interfaceIDOCXRPr- Parameters:
position- the vertically raised or lowered text.
-
getRFonts
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFonts getRFonts()Description copied from interface:IDOCXRPrReturns the font of the text.Represents the following element tag in the schema:
w:rFonts. -
setRFonts
public void setRFonts(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFonts rFonts) Description copied from interface:IDOCXRPrSets the font of the text.Represents the following element tag in the schema:
w:rFonts. -
getRStyle
Description copied from interface:IDOCXRPrReturns the run style of the text.Represents the following element tag in the schema:
w:rStyle. -
setRStyle
Description copied from interface:IDOCXRPrSets the run style of the text.Represents the following element tag in the schema:
w:rStyle. -
isRtl
public boolean isRtl()Description copied from interface:IDOCXRPrReturns whether the text is right to left.Represents the following element tag in the schema:
w:rtl. -
setRtl
public void setRtl(boolean rtl) Description copied from interface:IDOCXRPrSets whether the text is right to left.Represents the following element tag in the schema:
w:rtl. -
isShadow
public boolean isShadow()Description copied from interface:IDOCXRPrReturns whether the text is shadow.Represents the following element tag in the schema:
w:shadow. -
setShadow
public void setShadow(boolean shadow) Description copied from interface:IDOCXRPrSets whether the text is shadow.Represents the following element tag in the schema:
w:shadow. -
getShd
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd getShd()Description copied from interface:IDOCXRPrReturns the shading of the text.Represents the following element tag in the schema:
w:shd. -
setShd
public void setShd(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd shd) Description copied from interface:IDOCXRPrSets the shading of the text.Represents the following element tag in the schema:
w:shd. -
isSmallCaps
public boolean isSmallCaps()Description copied from interface:IDOCXRPrReturns whether the text is small caps.Represents the following element tag in the schema:
w:smallCaps.- Specified by:
isSmallCapsin interfaceIDOCXRPr- Returns:
- whether the text is small caps.
-
setSmallCaps
public void setSmallCaps(boolean smallCaps) Description copied from interface:IDOCXRPrSets whether the text is small caps.Represents the following element tag in the schema:
w:smallCaps.- Specified by:
setSmallCapsin interfaceIDOCXRPr- Parameters:
smallCaps- whether the text is small caps.
-
isSnapToGrid
public boolean isSnapToGrid()Description copied from interface:IDOCXRPrReturns whether to use document grid settings for Inter-Character spacing.Represents the following element tag in the schema:
w:snapToGrid.- Specified by:
isSnapToGridin interfaceIDOCXRPr- Returns:
- whether to use document grid settings for Inter-Character spacing.
-
setSnapToGrid
public void setSnapToGrid(boolean snapToGrid) Description copied from interface:IDOCXRPrSets whether to use document grid settings for Inter-Character spacing.Represents the following element tag in the schema:
w:snapToGrid.- Specified by:
setSnapToGridin interfaceIDOCXRPr- Parameters:
snapToGrid- whether to use document grid settings for Inter-Character spacing.
-
getSpacing
Description copied from interface:IDOCXRPrReturns the spacing of the text.Represents the following element tag in the schema:
w:spacing.- Specified by:
getSpacingin interfaceIDOCXRPr- Returns:
- the spacing of the text.
-
setSpacing
Description copied from interface:IDOCXRPrSets the spacing of the text.Represents the following element tag in the schema:
w:spacing.- Specified by:
setSpacingin interfaceIDOCXRPr- Parameters:
spacing- the spacing of the text.
-
isSpecVanish
public boolean isSpecVanish()Description copied from interface:IDOCXRPrReturns whether the text is spec vanish.Represents the following element tag in the schema:
w:specVanish.- Specified by:
isSpecVanishin interfaceIDOCXRPr- Returns:
- whether the text is spec vanish.
-
setSpecVanish
public void setSpecVanish(boolean specVanish) Description copied from interface:IDOCXRPrSets whether the text is spec vanish.Represents the following element tag in the schema:
w:specVanish.- Specified by:
setSpecVanishin interfaceIDOCXRPr- Parameters:
specVanish- whether the text is spec vanish.
-
isStrike
public boolean isStrike()Description copied from interface:IDOCXRPrReturns whether the text is strike through.Represents the following element tag in the schema:
w:strike. -
setStrike
public void setStrike(boolean strike) Description copied from interface:IDOCXRPrSets whether the text is strike through.Represents the following element tag in the schema:
w:strike. -
getSz
Description copied from interface:IDOCXRPrReturns the font size of the text.Represents the following element tag in the schema:
w:sz. -
setSz
Description copied from interface:IDOCXRPrSets the font size of the text.Represents the following element tag in the schema:
w:sz. -
getSzCs
Description copied from interface:IDOCXRPrReturns the font size of the text in complex script.Represents the following element tag in the schema:
w:szCs. -
setSzCs
Description copied from interface:IDOCXRPrSets the font size of the text in complex script.Represents the following element tag in the schema:
w:szCs. -
getU
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTUnderline getU()Description copied from interface:IDOCXRPrReturns the underline style of the text.Represents the following element tag in the schema:
w:u. -
setU
public void setU(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTUnderline u) Description copied from interface:IDOCXRPrSets the underline style of the text.Represents the following element tag in the schema:
w:u. -
isVanish
public boolean isVanish()Description copied from interface:IDOCXRPrReturns whether the text is vanished.Represents the following element tag in the schema:
w:vanish. -
setVanish
public void setVanish(boolean vanish) Description copied from interface:IDOCXRPrSets whether the text is vanished.Represents the following element tag in the schema:
w:vanish. -
getVertAlign
public org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STVerticalAlignRun.Enum getVertAlign()Description copied from interface:IDOCXRPrReturns the vertical alignment.Represents the following element tag in the schema:
w:vertAlign.- Specified by:
getVertAlignin interfaceIDOCXRPr- Returns:
- the vertical alignment.
-
getW
Description copied from interface:IDOCXRPrReturns the character scale.Represents the following element tag in the schema:
w:w. -
setW
Description copied from interface:IDOCXRPrSets the character scale.Represents the following element tag in the schema:
w:w. -
isWebHidden
public boolean isWebHidden()Description copied from interface:IDOCXRPrReturns whether the text is web hidden.Represents the following element tag in the schema:
w:webHidden.- Specified by:
isWebHiddenin interfaceIDOCXRPr- Returns:
- whether the text is web hidden.
-
setWebHidden
public void setWebHidden(boolean webHidden) Description copied from interface:IDOCXRPrSets whether the text is web hidden.Represents the following element tag in the schema:
w:webHidden.- Specified by:
setWebHiddenin interfaceIDOCXRPr- Parameters:
webHidden- whether the text is web hidden.
-