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
| Name | Type | Access | Description |
|---|---|---|---|
pElement | Element | Read | Returns the underlying {@code <a:p>} XML element. |
bullet | IBulletFormat | Read | Gets the bullet. |
depth | int | Read | Gets the depth. |
alignment | TextAlignment | Read | Gets the alignment. |
spaceWithin | double | Read | Gets the space within. |
spaceBefore | double | Read | Gets the space before. |
spaceAfter | double | Read | Gets the space after. |
eastAsianLineBreak | NullableBool | Read | Gets the east asian line break. |
rightToLeft | NullableBool | Read | Gets the right to left. |
latinLineBreak | NullableBool | Read | Gets the latin line break. |
hangingPunctuation | NullableBool | Read | Gets the hanging punctuation. |
marginLeft | double | Read | Gets the margin left. |
marginRight | double | Read | Gets the margin right. |
indent | double | Read | Gets the indent. |
defaultTabSize | double | Read | Gets the default tab size. |
fontAlignment | FontAlignment | Read | Gets the font alignment. |
defaultPortionFormat | IBasePortionFormat | Read | Gets the default portion format. |
slide | IBaseSlide | Read | Gets the slide. |
presentation | IPresentation | Read | Gets the presentation. |
Methods
| Signature | Description |
|---|---|
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) → ParagraphFormat | Initializes this format with a direct {@code <a:pPr>} element, save callback, |
| and parent slide reference. | |
getPElement() → Element | Returns the underlying {@code <a:p>} XML element. |
pprInsertChild(ppr: Element, localName: String, attributes: Map<String, String>) → Element | Creates and inserts a child element into {@code <a:pPr>} at the correct |
| OOXML schema position. | |
pprInsertChild(ppr: Element, localName: String) → Element | Overload of {@link #pprInsertChild(Element, String, Map)} with no attributes. |
getBullet() → IBulletFormat | Returns the bullet. |
getDepth() → int | Returns the depth. |
setDepth(value: int) | Sets the depth value. |
getAlignment() → TextAlignment | Returns the alignment. |
setAlignment(value: TextAlignment) | Sets the alignment value. |
getSpaceWithin() → double | Returns the space within. |
setSpaceWithin(value: double) | Sets the space within value. |
getSpaceBefore() → double | Returns the space before. |
setSpaceBefore(value: double) | Sets the space before value. |
getSpaceAfter() → double | Returns the space after. |
setSpaceAfter(value: double) | Sets the space after value. |
getEastAsianLineBreak() → NullableBool | Returns the east asian line break. |
setEastAsianLineBreak(value: NullableBool) | Sets the east asian line break value. |
getRightToLeft() → NullableBool | Returns the right to left. |
setRightToLeft(value: NullableBool) | Sets the right to left value. |
getLatinLineBreak() → NullableBool | Returns the latin line break. |
setLatinLineBreak(value: NullableBool) | Sets the latin line break value. |
getHangingPunctuation() → NullableBool | Returns the hanging punctuation. |
setHangingPunctuation(value: NullableBool) | Sets the hanging punctuation value. |
getMarginLeft() → double | Returns the margin left. |
setMarginLeft(value: double) | Sets the margin left value. |
getMarginRight() → double | Returns the margin right. |
setMarginRight(value: double) | Sets the margin right value. |
getIndent() → double | Returns the indent. |
setIndent(value: double) | Sets the indent value. |
getDefaultTabSize() → double | Returns the default tab size. |
setDefaultTabSize(value: double) | Sets the default tab size value. |
getFontAlignment() → FontAlignment | Returns the font alignment. |
setFontAlignment(value: FontAlignment) | Sets the font alignment value. |
getDefaultPortionFormat() → IBasePortionFormat | Returns the default portion format. |
PVIObject() | Creates a PVIObject with no parent slide. |
getSlide() → IBaseSlide | Returns the slide. |
getPresentation() → IPresentation | Returns the presentation. |
asIPresentationComponent() → IPresentationComponent | Returns this object as an {@link IPresentationComponent}. |