com.aspose.slides
Class Paragraph

java.lang.Object
  extended by com.aspose.slides.Paragraph
All Implemented Interfaces:
IParagraph, IPresentationComponent, ISlideComponent

public final class Paragraph
extends java.lang.Object
implements IParagraph

Represents a paragraph of text.


Constructor Summary
Paragraph()
           Initializes a new instance of the Paragraph class with default properties.
Paragraph(Paragraph para)
           Copy constructor that initializes a new instance of a Paragraph class.
 
Method Summary
 IParagraphFormatEffectiveData createParagraphFormatEffective()
           Creates immutable object which contains effective paragraph formatting properties with the inheritance applied.
 IParagraphFormat getParagraphFormat()
           Returns the formatting object for this paragraph.
 com.aspose.slides.IDOMObject getParent_Immediate()
           Returns Parent_Immediate object.
 IPortionCollection getPortions()
           Returns the collection of a text portions.
 IPresentation getPresentation()
           Returns the parent presentation of a paragraph.
 IBaseSlide getSlide()
           Returns the parent slide of a paragraph.
 java.lang.String getText()
           Gets or sets the the plain text of a paragraph.
 void joinPortionsWithSameFormatting()
           Joins runs with same formatting.
 void setText(java.lang.String value)
           Gets or sets the the plain text of a paragraph.
 void subscribe(com.aspose.slides.IObserver observer)
           
 void unsubscribe(com.aspose.slides.IObserver observer)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Paragraph

public Paragraph()

Initializes a new instance of the Paragraph class with default properties.


Paragraph

public Paragraph(Paragraph para)

Copy constructor that initializes a new instance of a Paragraph class.

Method Detail

getPortions

public IPortionCollection getPortions()

Returns the collection of a text portions. Read-only IPortionCollection.

Specified by:
getPortions in interface IParagraph

getParagraphFormat

public IParagraphFormat getParagraphFormat()

Returns the formatting object for this paragraph. Read-only IParagraphFormat.


The formatting object contains the formatting parameters defined for the current paragraph only, inherited data is not applied.

In order to get the effective values including inherited ones use the CreateParagraphFormatEffective method.

Specified by:
getParagraphFormat in interface IParagraph

joinPortionsWithSameFormatting

public void joinPortionsWithSameFormatting()

Joins runs with same formatting.

Specified by:
joinPortionsWithSameFormatting in interface IParagraph

createParagraphFormatEffective

public IParagraphFormatEffectiveData createParagraphFormatEffective()

Creates immutable object which contains effective paragraph formatting properties with the inheritance applied.

Specified by:
createParagraphFormatEffective in interface IParagraph
Returns:
A ParagraphFormatEffectiveData.

getText

public java.lang.String getText()

Gets or sets the the plain text of a paragraph. Read/write String.

Value: The text.

Specified by:
getText in interface IParagraph

setText

public void setText(java.lang.String value)

Gets or sets the the plain text of a paragraph. Read/write String.

Value: The text.

Specified by:
setText in interface IParagraph

subscribe

public void subscribe(com.aspose.slides.IObserver observer)

unsubscribe

public void unsubscribe(com.aspose.slides.IObserver observer)

getParent_Immediate

public com.aspose.slides.IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.


getSlide

public IBaseSlide getSlide()

Returns the parent slide of a paragraph. Read-only BaseSlide.

Specified by:
getSlide in interface ISlideComponent

getPresentation

public IPresentation getPresentation()

Returns the parent presentation of a paragraph. Read-only IPresentation.

Specified by:
getPresentation in interface IPresentationComponent


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.