|
|||||||||
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 | |
---|---|
TextFrame |
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. |
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. |
Links |
getLinks()
Returns the list of all links in a frame. |
float |
getMarginBottom()
Returns the bottom margin (mm) in a TextFrame. |
float |
getMarginLeft()
Returns the left margin (mm) in a TextFrame. |
float |
getMarginRight()
Returns the right margin (mm) in a TextFrame. |
float |
getMarginTop()
Returns the top margin (mm) in a TextFrame. |
MetaCharacters |
getMetaCharacters()
Returns the collection of meta characters. |
Paragraphs |
getParagraphs()
Returns the list of all paragraphs in a frame. |
Shape |
getParentShape()
Returns parent shape of a text frame. |
Slide |
getSlide()
Returns the parent Slide for a TextFrame. |
Tabs |
getTabs()
Deprecated. Use TextRuler.getTabs() 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(float value)
Sets the bottom margin (mm) in a TextFrame. |
void |
setMarginLeft(float value)
Sets the left margin (mm) in a TextFrame. |
void |
setMarginRight(float value)
Sets the right margin (mm) in a TextFrame. |
void |
setMarginTop(float 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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Paragraphs getParagraphs()
getParagraphs
in interface ITextBox
public Links getLinks() throws PptReadException
PptReadException
public Tabs getTabs()
TextRuler.getTabs()
property instead.
public EffectiveTabs getEffectiveTabs(int ParagraphNumber) throws java.lang.IndexOutOfBoundsException
ParagraphNumber
- Index of a paragraph.
java.lang.IndexOutOfBoundsException
public java.lang.String getText()
public void setText(java.lang.String value)
value
- new text.public MetaCharacters getMetaCharacters()
public float getMarginLeft()
public void setMarginLeft(float value) throws PptPropertyException
value
- new left margin.
PptPropertyException
public float getMarginRight()
public void setMarginRight(float value) throws PptPropertyException
value
- new right margin.
PptPropertyException
public float getMarginTop()
public void setMarginTop(float value) throws PptPropertyException
value
- new top margin.
PptPropertyException
public float getMarginBottom()
public void setMarginBottom(float value) throws PptPropertyException
value
- new bottom margin.
PptPropertyException
public 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 TextFrame addTextFrame(java.lang.String text) throws PptEditException
addTextFrame
in class Shape
text
- Default text for a new TextFrame.
PptEditException
public Shape getParentShape()
public void fitTextToShape()
public TextRuler getTextRuler()
getTextRuler
in interface ITextBox
public Slide getSlide()
getSlide
in interface ITextBox
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |