com.aspose.slides.pptx
Class TextFrameEx

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

public final class TextFrameEx
extends java.lang.Object
implements ISlideComponent

Represents a TextFrame.


Field Summary
 ISlideComponent m_parent
           
 
Constructor Summary
TextFrameEx(ISlideComponent parent)
           
 
Method Summary
 TextAnchorTypeEx getAnchoringType()
          Returns vertical anchor text in a TextFrameEx.
 boolean getCenterText()
          Determines whether the text should be centered horizontally.
 double getMarginBottom()
          Returns the bottom margin (points) in a TextFrame.
 double getMarginLeft()
          Returns the left margin (points) in a TextFrame.
 double getMarginRight()
          Returns the right margin (points) in a TextFrame.
 double getMarginTop()
          Returns the top margin (points) in a TextFrame.
 ParagraphsEx getParagraphs()
          Returns the list of all paragraphs in a frame.
 PresentationEx getPresentation()
          Returns the parent presentation of a TextFrameEx.
 BaseSlideEx getSlide()
          Returns the parent slide of a TextFrameEx.
 java.lang.String getText()
          Returns the plain text for a TextFrame.
 TextVerticalTypeEx getTextVerticalType()
          Returns the orientation of a text.
 boolean getWrapText()
          Determines whether the text is wrapped at TextFrame's margins.
 void load(com.aspose.slides.pptx.presentationml.PptxBaseXmlElement sourceContainer, java.lang.String localName, java.lang.String namespaceURI)
           
 void setAnchoringType(TextAnchorTypeEx value)
          Sets vertical anchor text in a TextFrameEx.
 void setCenterText(boolean value)
          Sets whether the text should be centered horizontally.
 void setMarginBottom(double value)
          Sets the bottom margin (points) in a TextFrame.
 void setMarginLeft(double value)
          Sets the left margin (points) in a TextFrame.
 void setMarginRight(double value)
          Sets the right margin (points) in a TextFrame.
 void setMarginTop(double value)
          Sets the top margin (points) in a TextFrame.
 void setText(java.lang.String value)
          Sets the plain text for a TextFrame.
 void setTextVerticalType(TextVerticalTypeEx value)
          Sets the orientation of a text.
 void setWrapText(boolean value)
          Sets whether the text is wrapped at TextFrame's margins.
 void write(com.aspose.slides.pptx.presentationml.PptxBaseXmlElement targetContainer, java.lang.String localName, java.lang.String namespaceURI)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_parent

public ISlideComponent m_parent
Constructor Detail

TextFrameEx

public TextFrameEx(ISlideComponent parent)
Method Detail

load

public void load(com.aspose.slides.pptx.presentationml.PptxBaseXmlElement sourceContainer,
                 java.lang.String localName,
                 java.lang.String namespaceURI)

write

public void write(com.aspose.slides.pptx.presentationml.PptxBaseXmlElement targetContainer,
                  java.lang.String localName,
                  java.lang.String namespaceURI)

getParagraphs

public ParagraphsEx getParagraphs()
Returns the list of all paragraphs in a frame.

Returns:
ParagraphsEx

getText

public java.lang.String getText()
Returns the plain text for a TextFrame.


setText

public void setText(java.lang.String value)
Sets the plain text for a TextFrame.

Parameters:
value -

getMarginLeft

public double getMarginLeft()
Returns the left margin (points) in a TextFrame.


setMarginLeft

public void setMarginLeft(double value)
Sets the left margin (points) in a TextFrame.


getMarginRight

public double getMarginRight()
Returns the right margin (points) in a TextFrame.


setMarginRight

public void setMarginRight(double value)
Sets the right margin (points) in a TextFrame.

Parameters:
value -

getMarginTop

public double getMarginTop()
Returns the top margin (points) in a TextFrame.


setMarginTop

public void setMarginTop(double value)
Sets the top margin (points) in a TextFrame.


getMarginBottom

public double getMarginBottom()
Returns the bottom margin (points) in a TextFrame.


setMarginBottom

public void setMarginBottom(double value)
Sets the bottom margin (points) in a TextFrame.


getWrapText

public boolean getWrapText()
Determines whether the text is wrapped at TextFrame's margins.


setWrapText

public void setWrapText(boolean value)
Sets whether the text is wrapped at TextFrame's margins.


getAnchoringType

public TextAnchorTypeEx getAnchoringType()
Returns vertical anchor text in a TextFrameEx.


setAnchoringType

public void setAnchoringType(TextAnchorTypeEx value)
Sets vertical anchor text in a TextFrameEx.

Parameters:
value - new anchor type.

getCenterText

public boolean getCenterText()
Determines whether the text should be centered horizontally.


setCenterText

public void setCenterText(boolean value)
Sets whether the text should be centered horizontally.


getTextVerticalType

public TextVerticalTypeEx getTextVerticalType()
Returns the orientation of a text.


setTextVerticalType

public void setTextVerticalType(TextVerticalTypeEx value)
Sets the orientation of a text.


getSlide

public BaseSlideEx getSlide()
Returns the parent slide of a TextFrameEx.

Specified by:
getSlide in interface ISlideComponent
Returns:
BaseSlideEx

getPresentation

public PresentationEx getPresentation()
Returns the parent presentation of a TextFrameEx.

Specified by:
getPresentation in interface IPresentationComponent
Returns:
PresentationEx