|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.aspose.slides.Shape
com.aspose.slides.TextFrame
public final class TextFrame
Represents the TextFrame shape.
| Method Summary | |
|---|---|
void |
addTextFrame(java.lang.String text)
Adds a new TextFrame to a shape. |
void |
fitTextToShape()
Decreases Paragraph's SpaceWithin and/or FontHeight to fit text to a TextFrame's rectangle. |
int |
getAnchorText()
Returns the anchor text in a TextFrame. |
int |
getDateTimePosition()
Returns the position of a DateTime meta character in a TextFrame. -1 if a TextFrame doesn't contain DateTime meta character. |
EffectiveTabs |
getEffectiveTabs(int ParagraphNumber)
Returns the list of tabulations for a paragraph, including implicitly generated. |
int |
getFontRotation()
Returns additional rotation of text in a shape. |
int |
getFooterPosition()
Returns the position of a Footer meta character in a TextFrame. -1 if a TextFrame doesn't contain Footer meta character. |
int |
getGenericDatePosition()
Returns the position of a GenericDate meta character in a TextFrame. -1 if a TextFrame doesn't contain GenericDate meta character. |
int |
getHeaderPosition()
Returns the position of a Header meta character in a TextFrame. -1 if a TextFrame doesn't contain Header meta character. |
Links |
getLinks()
Returns the list of all links in a frame. |
double |
getMarginBottom()
Returns the bottom margin (mm) in a TextFrame. |
double |
getMarginLeft()
Returns the left margin (mm) in a TextFrame. |
double |
getMarginRight()
Returns the right margin (mm) in a TextFrame. |
double |
getMarginTop()
Returns the top margin (mm) in a TextFrame. |
com.aspose.slides.LevelStyle |
getMasterStyle(short depth)
Returns LevelStyle from master slide. |
Paragraphs |
getParagraphs()
Returns the list of all paragraphs in a frame. |
Slide |
getSlide()
Returns the parent Slide for a TextFrame. |
int |
getSlideNumberPosition()
Returns the position of a SlideNumber meta character in a TextFrame. -1 if a TextFrame doesn't contain SlideNumber meta character. |
Tabs |
getTabs()
Deprecated. Use TextRuler.Tabs property instead. |
java.lang.String |
getText()
Returns the plain text for a TextFrame. |
TextRuler |
getTextRuler()
Returns a TextRuler of a textframe. |
boolean |
isFitShapeToText()
Determines whether the TextFrame size fitted to the text. |
boolean |
isRotateTextBy90Degrees()
Determines whether the text of TextFrame is rotated by 90 degree. |
boolean |
isWrapText()
Determines whether the text is wrapped at TextFrame's margins. |
void |
setAnchorText(int value)
Sets the anchor text in a TextFrame. |
void |
setFitShapeToText(boolean value)
Sets whether the TextFrame size fitted to the text. |
void |
setFontRotation(int value)
Sets additional rotation of text in a shape. |
void |
setMarginBottom(double value)
Sets the bottom margin (mm) in a TextFrame. |
void |
setMarginLeft(double value)
Sets the left margin (mm) in a TextFrame. |
void |
setMarginRight(double value)
Sets the right margin (mm) in a TextFrame. |
void |
setMarginTop(double value)
Sets the top margin (mm) in a TextFrame. |
void |
setRotateTextBy90Degrees(boolean value)
Sets whether the text of TextFrame is rotated by 90 degree. |
void |
setText(java.lang.String value)
Sets the plain text for a TextFrame. |
void |
setWrapText(boolean value)
Sets whether the text is wrapped at TextFrame's margins. |
void |
textChanged()
Recalculates text parameters in a TextFrame. |
| Methods inherited from class com.aspose.slides.Shape |
|---|
addLink, clearLink, getAlternativeText, getAnimationSettings, getFillFormat, getHeight, getLineFormat, getLink, getName, getParent, getPlaceholder, getRotation, getTags, getTextFrame, getWidth, getX, getY, getZOrderPosition, isFlipH, isFlipV, isHidden, isMasterTextHolder, isTextHolder, serialize, setAlternativeText, setFlipH, setFlipV, setHeight, setHidden, setName, setRotation, setWidth, setX, setY, zOrder |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Paragraphs getParagraphs()
Paragraphs.
public Links getLinks()
throws PptReadException
Links.
PptReadExceptionpublic Tabs getTabs()
Tabs.
public EffectiveTabs getEffectiveTabs(int ParagraphNumber)
throws java.lang.IndexOutOfBoundsException
EffectiveTabs
ParagraphNumber - Index of a paragraph.
java.lang.IndexOutOfBoundsExceptionpublic java.lang.String getText()
public void setText(java.lang.String value)
value - The plain text.public int getSlideNumberPosition()
public int getDateTimePosition()
public int getGenericDatePosition()
public int getHeaderPosition()
public int getFooterPosition()
public double getMarginLeft()
public void setMarginLeft(double value)
throws PptPropertyException
value - new left margin.
PptPropertyExceptionpublic double getMarginRight()
public void setMarginRight(double value)
throws PptPropertyException
value - new right margin.
PptPropertyExceptionpublic double getMarginTop()
public void setMarginTop(double value)
throws PptPropertyException
value - new top margin.
PptPropertyExceptionpublic double getMarginBottom()
public void setMarginBottom(double value)
throws PptPropertyException
value - new bottom margin.
PptPropertyExceptionpublic int getAnchorText()
AnchorText.public void setAnchorText(int value)
value - new text anchor. See AnchorText.public boolean isWrapText()
public void setWrapText(boolean value)
value - true to wrap the text.public boolean isFitShapeToText()
public void setFitShapeToText(boolean value)
value - true to fit TextFrame's size to the text.public boolean isRotateTextBy90Degrees()
public void setRotateTextBy90Degrees(boolean value)
value - True to rotate text of TextFrame by 90 degree.public int getFontRotation()
FontRotationAngle.public void setFontRotation(int value)
value - additional rotation of text in a shape. See FontRotationAngle.
public void addTextFrame(java.lang.String text)
throws PptEditException
addTextFrame in class Shapetext - Default text for a new TextFrame.
PptEditExceptionpublic void fitTextToShape()
public TextRuler getTextRuler()
public com.aspose.slides.LevelStyle getMasterStyle(short depth)
depth - Depth level of text.
public Slide getSlide()
Slide for a TextFrame.
Slide.public void textChanged()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||