ParagraphFormat

ParagraphFormat

Overview

ParagraphFormat is a class in Aspose.Slides FOSS for Java. Inherits from: PVIObject, IParagraphFormat.

Represents paragraph formatting properties.

This class provides 40 methods for working with ParagraphFormat objects in Java programs. Available methods include: PVIObject, ParagraphFormat, asIPresentationComponent, getAlignment, getBullet, getDefaultPortionFormat, getDefaultTabSize, getDepth, getEastAsianLineBreak, getFontAlignment, getHangingPunctuation, getIndent, and 26 additional methods. All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package. Properties: alignment, bullet, defaultPortionFormat, defaultTabSize, depth, eastAsianLineBreak, and 13 more.

Properties

NameTypeAccessDescription
pElementElementReadReturns the underlying {@code <a:p>} XML element.
bulletIBulletFormatReadGets the bullet.
depthintReadGets the depth.
alignmentTextAlignmentReadGets the alignment.
spaceWithindoubleReadGets the space within.
spaceBeforedoubleReadGets the space before.
spaceAfterdoubleReadGets the space after.
eastAsianLineBreakNullableBoolReadGets the east asian line break.
rightToLeftNullableBoolReadGets the right to left.
latinLineBreakNullableBoolReadGets the latin line break.
hangingPunctuationNullableBoolReadGets the hanging punctuation.
marginLeftdoubleReadGets the margin left.
marginRightdoubleReadGets the margin right.
indentdoubleReadGets the indent.
defaultTabSizedoubleReadGets the default tab size.
fontAlignmentFontAlignmentReadGets the font alignment.
defaultPortionFormatIBasePortionFormatReadGets the default portion format.
slideIBaseSlideReadGets the slide.
presentationIPresentationReadGets the presentation.

Methods

SignatureDescription
ParagraphFormat(pElement: Element, saveCallback: Runnable)Creates a ParagraphFormat backed by the given paragraph element.
ParagraphFormat()Creates a new detached ParagraphFormat.
initInternal(pprElement: Element, saveCallback: Runnable, parentSlide: IBaseSlide)ParagraphFormatInitializes this format with a direct {@code <a:pPr>} element, save callback,
and parent slide reference.
getPElement()ElementReturns the underlying {@code <a:p>} XML element.
pprInsertChild(ppr: Element, localName: String, attributes: Map<String, String>)ElementCreates and inserts a child element into {@code <a:pPr>} at the correct
OOXML schema position.
pprInsertChild(ppr: Element, localName: String)ElementOverload of {@link #pprInsertChild(Element, String, Map)} with no attributes.
getBullet()IBulletFormatReturns the bullet.
getDepth()intReturns the depth.
setDepth(value: int)Sets the depth value.
getAlignment()TextAlignmentReturns the alignment.
setAlignment(value: TextAlignment)Sets the alignment value.
getSpaceWithin()doubleReturns the space within.
setSpaceWithin(value: double)Sets the space within value.
getSpaceBefore()doubleReturns the space before.
setSpaceBefore(value: double)Sets the space before value.
getSpaceAfter()doubleReturns the space after.
setSpaceAfter(value: double)Sets the space after value.
getEastAsianLineBreak()NullableBoolReturns the east asian line break.
setEastAsianLineBreak(value: NullableBool)Sets the east asian line break value.
getRightToLeft()NullableBoolReturns the right to left.
setRightToLeft(value: NullableBool)Sets the right to left value.
getLatinLineBreak()NullableBoolReturns the latin line break.
setLatinLineBreak(value: NullableBool)Sets the latin line break value.
getHangingPunctuation()NullableBoolReturns the hanging punctuation.
setHangingPunctuation(value: NullableBool)Sets the hanging punctuation value.
getMarginLeft()doubleReturns the margin left.
setMarginLeft(value: double)Sets the margin left value.
getMarginRight()doubleReturns the margin right.
setMarginRight(value: double)Sets the margin right value.
getIndent()doubleReturns the indent.
setIndent(value: double)Sets the indent value.
getDefaultTabSize()doubleReturns the default tab size.
setDefaultTabSize(value: double)Sets the default tab size value.
getFontAlignment()FontAlignmentReturns the font alignment.
setFontAlignment(value: FontAlignment)Sets the font alignment value.
getDefaultPortionFormat()IBasePortionFormatReturns the default portion format.
PVIObject()Creates a PVIObject with no parent slide.
getSlide()IBaseSlideReturns the slide.
getPresentation()IPresentationReturns the presentation.
asIPresentationComponent()IPresentationComponentReturns this object as an {@link IPresentationComponent}.

See Also