|
|||||||||
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. |
int |
getDateTimePosition()
Deprecated. Use getMetaCharacters() instead. |
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()
Deprecated. Use getMetaCharacters() instead. |
int |
getFrameType()
|
int |
getGenericDatePosition()
Deprecated. Use getMetaCharacters() instead. |
int |
getHeaderPosition()
Deprecated. Use getMetaCharacters() instead. |
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. |
com.aspose.slides.ppt.LevelStyle |
getMasterStyle(short depth)
Returns LevelStyle from master slide. |
MetaCharacters |
getMetaCharacters()
Returns the collection of meta characters. |
Paragraphs |
getParagraphs()
Returns the list of all paragraphs in a frame. |
Slide |
getSlide()
Returns the parent Slide for a TextFrame. |
int |
getSlideNumberPosition()
Deprecated. Use getMetaCharacters() instead. |
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(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. |
void |
textChanged()
Recalculates text parameters in a TextFrame. |
Methods inherited from class com.aspose.slides.Shape |
---|
addLink, clearLink, createShapeElements, createShapeElements, getAlternativeText, getAnimationSettings, getConnectionSites, getConnectionSitesRaw, getFillFormat, getHeight, getLineFormat, getLink, getMasterShapeId, getName, getParent, getPlaceholder, getProtection, getRotation, getShadowFormat, getShapeId, getShapeRectangle, getTags, getTextFrame, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, hasExternalData, isFlipH, isFlipV, isHidden, isMasterTextHolder, isTextHolder, serialize, setAlternativeText, setFlipH, setFlipV, setHeight, setHidden, setName, setProtection, 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()
getParagraphs
in interface ITextBox
public Links getLinks() throws PptReadException
PptReadException
public Tabs getTabs()
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
- The plain text.public MetaCharacters getMetaCharacters()
public int getSlideNumberPosition()
public int getDateTimePosition()
public int getGenericDatePosition()
public int getHeaderPosition()
public int getFooterPosition()
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 void fitTextToShape()
public TextRuler getTextRuler()
getTextRuler
in interface ITextBox
public com.aspose.slides.ppt.LevelStyle getMasterStyle(short depth)
depth
- Depth level of text.
public int getFrameType()
public Slide getSlide()
getSlide
in interface ITextBox
public void textChanged()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |