com.aspose.slides
Class TextHolder

java.lang.Object
  extended by com.aspose.slides.Placeholder
      extended by com.aspose.slides.TextHolder
All Implemented Interfaces:
ITextBox

public final class TextHolder
extends Placeholder
implements ITextBox

Represents a text placeholder.


Method Summary
 void fitTextToShape()
           Decreases Paragraph's SpaceWithin and/or FontHeight to fit text to a TextHolder's rectangle.
 int getAnchorText()
           Returns or sets the anchor text in a TextHolder.
 EffectiveTabs getEffectiveTabs(int ParagraphNumber)
           Returns the list of tabulations for a paragraph, including implicitly generated.
 boolean getFitShapeToText()
           Determines whether the size of TextHolder should be fit to text size.
 int getFrameType()
           
 int getHeight()
           Returns or sets the height of a TextHolder.
 LinkCollection getLinks()
           Returns the list of all links in a frame.
 double getMarginBottom()
           Returns or sets the bottom margin (mm) of text in a TextHolder.
 double getMarginLeft()
           Returns or sets the left margin (mm) of text in a TextHolder.
 double getMarginRight()
           Returns or sets the right margin (mm) of text in a TextHolder.
 double getMarginTop()
           Returns or sets the top margin (mm) of text in a TextHolder.
 com.aspose.slides.LevelStyle getMasterStyle(short depth)
           
 ParagraphCollection getParagraphs()
           Returns the list of all paragraphs in a frame.
 boolean getRotateTextBy90Degrees()
           Determines whether the text should be rotated by 90 degree inside TextHolder.
 BaseSlide getSlide()
           
 TabCollection getTabs()
          Deprecated. 
 java.lang.String getText()
           Returns the plain text for a TextHolder.
 TextRuler getTextRuler()
           Returns the TextRuler of a TextHolder.
 int getWidth()
           Returns or sets the width of a TextHolder.
 boolean getWrapText()
           Determines whether the text should be wrapped at TextHolder's margins.
 int getX()
           Returns or sets the x-coordinate of the upper-left corner of a TextHolder.
 int getY()
           Returns or sets the y-coordinate of the upper-left corner of a TextHolder.
 void setAnchorText(int value)
           
 void setFitShapeToText(boolean value)
           
 void setHeight(int value)
           
 void setMarginBottom(double value)
           
 void setMarginLeft(double value)
           
 void setMarginRight(double value)
           
 void setMarginTop(double value)
           
 void setRotateTextBy90Degrees(boolean value)
           
 void setText(java.lang.String value)
           
 void setWidth(int value)
           
 void setWrapText(boolean value)
           
 void setX(int value)
           
 void setY(int value)
           
 void textChanged()
           
 
Methods inherited from class com.aspose.slides.Placeholder
getAlternativeText, getFillFormat, getLineFormat, getMasterShapeId, getParent, getParentSlide, getPlaceholderType, getShadowFormat, getShapeRef, getThreeDFormat, setAlternativeText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getText

public java.lang.String getText()

Returns the plain text for a TextHolder. Read-only string.


setText

public void setText(java.lang.String value)

getParagraphs

public ParagraphCollection getParagraphs()

Returns the list of all paragraphs in a frame. Read-only Aspose.Slides.Paragraphs.

Specified by:
getParagraphs in interface ITextBox

getLinks

public LinkCollection getLinks()

Returns the list of all links in a frame. Read-only Aspose.Slides.LinkCollection.


getTabs

@Deprecated
public TabCollection getTabs()
Deprecated. 

Returns the list of tabulations defined for a frame. Read-only Aspose.Slides.Tabs.


getEffectiveTabs

public EffectiveTabs getEffectiveTabs(int ParagraphNumber)

Returns the list of tabulations for a paragraph, including implicitly generated.

Parameters:
ParagraphNumber - Index of paragraph, for which tabulation positions will be generated.
Returns:
Aspose.Slides.EffectiveTabs object.

getX

public int getX()

Returns or sets the x-coordinate of the upper-left corner of a TextHolder. Read/write int.

Overrides:
getX in class Placeholder

setX

public void setX(int value)
Overrides:
setX in class Placeholder

getY

public int getY()

Returns or sets the y-coordinate of the upper-left corner of a TextHolder. Read/write int.

Overrides:
getY in class Placeholder

setY

public void setY(int value)
Overrides:
setY in class Placeholder

getWidth

public int getWidth()

Returns or sets the width of a TextHolder. Read/write int.

Overrides:
getWidth in class Placeholder

setWidth

public void setWidth(int value)
Overrides:
setWidth in class Placeholder

getHeight

public int getHeight()

Returns or sets the height of a TextHolder. Read/write int.

Overrides:
getHeight in class Placeholder

setHeight

public void setHeight(int value)
Overrides:
setHeight in class Placeholder

getMarginLeft

public double getMarginLeft()

Returns or sets the left margin (mm) of text in a TextHolder. Read/write double.


setMarginLeft

public void setMarginLeft(double value)

getMarginRight

public double getMarginRight()

Returns or sets the right margin (mm) of text in a TextHolder. Read/write double.


setMarginRight

public void setMarginRight(double value)

getMarginTop

public double getMarginTop()

Returns or sets the top margin (mm) of text in a TextHolder. Read/write double.


setMarginTop

public void setMarginTop(double value)

getMarginBottom

public double getMarginBottom()

Returns or sets the bottom margin (mm) of text in a TextHolder. Read/write double.


setMarginBottom

public void setMarginBottom(double value)

getAnchorText

public int getAnchorText()

Returns or sets the anchor text in a TextHolder. Read/write Aspose.Slides.AnchorText.


setAnchorText

public void setAnchorText(int value)

getWrapText

public boolean getWrapText()

Determines whether the text should be wrapped at TextHolder's margins. Read/write bool.


setWrapText

public void setWrapText(boolean value)

getFitShapeToText

public boolean getFitShapeToText()

Determines whether the size of TextHolder should be fit to text size. Read/write bool.


setFitShapeToText

public void setFitShapeToText(boolean value)

getRotateTextBy90Degrees

public boolean getRotateTextBy90Degrees()

Determines whether the text should be rotated by 90 degree inside TextHolder. Read/write bool.


setRotateTextBy90Degrees

public void setRotateTextBy90Degrees(boolean value)

fitTextToShape

public void fitTextToShape()

Decreases Paragraph's SpaceWithin and/or FontHeight to fit text to a TextHolder's rectangle. SpaceWithin decrement affects only line-based intervals and can decrease them down to 80 percent.


getTextRuler

public TextRuler getTextRuler()

Returns the TextRuler of a TextHolder. Read-only TextRuler


getSlide

public BaseSlide getSlide()

getMasterStyle

public com.aspose.slides.LevelStyle getMasterStyle(short depth)

getFrameType

public int getFrameType()

textChanged

public void textChanged()