ParagraphFormat

Overview

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

Represents paragraph formatting properties.

This class declares 41 methods for ParagraphFormat objects in Java programs. Available methods include: PVIObject, ParagraphFormat, asIPresentationComponent, getAlignment, getBullet, getDefaultPortionFormat, getDefaultTabSize, getDepth, getEastAsianLineBreak, getFontAlignment, getHangingPunctuation, getIndent, and 26 additional methods. 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.
depthintRead/WriteGets or sets the depth.
alignmentTextAlignmentRead/WriteGets or sets the alignment.
spaceWithindoubleRead/WriteGets or sets the space within.
spaceBeforedoubleRead/WriteGets or sets the space before.
spaceAfterdoubleRead/WriteGets or sets the space after.
eastAsianLineBreakNullableBoolRead/WriteGets or sets the east asian line break.
rightToLeftNullableBoolRead/WriteGets or sets the right to left.
latinLineBreakNullableBoolRead/WriteGets or sets the latin line break.
hangingPunctuationNullableBoolRead/WriteGets or sets the hanging punctuation.
marginLeftdoubleRead/WriteGets or sets the margin left.
marginRightdoubleRead/WriteGets or sets the margin right.
indentdoubleRead/WriteGets or sets the indent.
defaultTabSizedoubleRead/WriteGets or sets the default tab size.
fontAlignmentFontAlignmentRead/WriteGets or sets 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.
PVIObject(parentSlide: IBaseSlide)Creates a PVIObject associated with the given slide.
getSlide() → IBaseSlideReturns the slide.
getPresentation() → IPresentationReturns the presentation.
asIPresentationComponent() → IPresentationComponentReturns this object as an {@link IPresentationComponent}.

See Also

 English