|
|||||||||
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 a 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 or sets anchor text in a TextFrame. |
int |
getDateTimePosition()
Deprecated. |
EffectiveTabs |
getEffectiveTabs(int ParagraphNumber)
Returns the list of tabulations for a paragraph, including implicitly generated. |
int |
getFontRotation()
Additional rotation of text in a shape. |
int |
getFooterPosition()
Deprecated. |
int |
getFrameType()
|
int |
getGenericDatePosition()
Deprecated. |
int |
getHeaderPosition()
Deprecated. |
Links |
getLinks()
Returns the list of all links in a frame. |
double |
getMarginBottom()
Returns or sets bottom margin (mm) in a TextFrame. |
double |
getMarginLeft()
Returns or sets left margin (mm) in a TextFrame. |
double |
getMarginRight()
Returns or sets right margin (mm) in a TextFrame. |
double |
getMarginTop()
Returns or sets top margin (mm) in a TextFrame. |
com.aspose.slides.ppt.LevelStyle |
getMasterStyle(short depth)
|
MetaCharacters |
getMetaCharacters()
Returns the key-value collection of meta characters. |
Paragraphs |
getParagraphs()
Returns the list of all paragraphs in a frame. |
Shape |
getParentShape()
Returns parent shape of a text frame. |
BaseSlide |
getSlide()
Returns the parent Slide of a text box. |
int |
getSlideNumberPosition()
Deprecated. |
java.lang.String |
getText()
Gets or sets the plain text of a TextFrame. |
TextRuler |
getTextRuler()
Returns the TextRuler of a TextFrame. |
boolean |
isFitShapeToText()
<b>True</b> to fit size of TextFrame to text size. |
boolean |
isRotateTextBy90Degrees()
<b>True</b> to rotate text of TextFrame by 90 degree. |
boolean |
isWrapText()
<b>True</b> if text is wrapped at TextFrame's margins. |
void |
setAnchorText(int value)
|
void |
setFitShapeToText(boolean value)
|
void |
setFontRotation(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 |
setWrapText(boolean value)
|
void |
textChanged()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Paragraphs getParagraphs()
Returns the list of all paragraphs in a frame. Read-only Aspose.Slides.Paragraphs
.
getParagraphs
in interface ITextBox
public Links getLinks()
Returns the list of all links in a frame. Read-only Aspose.Slides.LinkCollection
.
public EffectiveTabs getEffectiveTabs(int ParagraphNumber)
Returns the list of tabulations for a paragraph, including implicitly generated.
ParagraphNumber
- Index of paragraph, for which tabulation positions will be generated.
Aspose.Slides.EffectiveTabs
object.public java.lang.String getText()
Gets or sets the plain text of a TextFrame.
Value: The text.
public void setText(java.lang.String value)
public MetaCharacters getMetaCharacters()
Returns the key-value collection of meta characters. Key is a position of meta character in a TextFrame, and value is a type (MetaCharacterType) of meta character. If a TextFrame doesn't contain meta characters this property has null value.
@Deprecated public int getSlideNumberPosition()
Returns the position of a SlideNumber meta character in a TextFrame. -1 if a TextFrame doesn't contain SlideNumber meta character. MS
PowerPoint uses '*' as meta character. Read-only int
.
@Deprecated public int getDateTimePosition()
Returns the position of a DateTime meta character in a TextFrame. -1 if a TextFrame doesn't contain DateTime meta character. MS
PowerPoint uses '*' as meta character. Read-only int
.
@Deprecated public int getGenericDatePosition()
Returns the position of a GenericDate meta character in a TextFrame. -1 if a TextFrame doesn't contain GenericDate meta character. MS
PowerPoint uses '*' as meta character. Read-only int
.
@Deprecated public int getHeaderPosition()
Returns the position of a Header meta character in a TextFrame. -1 if a TextFrame doesn't contain Header meta character. MS
PowerPoint uses '*' as meta character. Read-only int
.
@Deprecated public int getFooterPosition()
Returns the position of a Footer meta character in a TextFrame. -1 if a TextFrame doesn't contain Footer meta character. MS
PowerPoint uses '*' as meta character. Read-only int
.
public double getMarginLeft()
Returns or sets left margin (mm) in a TextFrame. Read/write double
.
public void setMarginLeft(double value)
public double getMarginRight()
Returns or sets right margin (mm) in a TextFrame. Read/write double
.
public void setMarginRight(double value)
public double getMarginTop()
Returns or sets top margin (mm) in a TextFrame. Read/write double
.
public void setMarginTop(double value)
public double getMarginBottom()
Returns or sets bottom margin (mm) in a TextFrame. Read/write double
.
public void setMarginBottom(double value)
public int getAnchorText()
Returns or sets anchor text in a TextFrame. Read/write Aspose.Slides.AnchorText
.
public void setAnchorText(int value)
public boolean isWrapText()
<b>True</b>
if text is wrapped at TextFrame's margins. Read/write bool
.
public void setWrapText(boolean value)
public boolean isFitShapeToText()
<b>True</b>
to fit size of TextFrame to text size. Read/write bool
.
public void setFitShapeToText(boolean value)
public boolean isRotateTextBy90Degrees()
<b>True</b>
to rotate text of TextFrame by 90 degree. Read/write bool
.
public void setRotateTextBy90Degrees(boolean value)
public int getFontRotation()
Additional rotation of text in a shape. Can be 0, 90, 180 or 270 degrees. Read/write Aspose.Slides.FontRotationAngle
.
public void setFontRotation(int value)
public TextFrame addTextFrame(java.lang.String text)
Adds a new TextFrame to a shape. If shape already has TextFrame then do nothing.
addTextFrame
in class Shape
text
- Default text for a new TextFrame.public Shape getParentShape()
Returns parent shape of a text frame. Read-only Shape
.
public void fitTextToShape()
Decreases Paragraph's SpaceWithin and/or FontHeight to fit text to a TextFrame's rectangle. SpaceWithin decrement affects only line-based intervals and can decrease them down to 80 percent.
public TextRuler getTextRuler()
Returns the TextRuler of a TextFrame. Read-only TextRuler
getTextRuler
in interface ITextBox
public com.aspose.slides.ppt.LevelStyle getMasterStyle(short depth)
public int getFrameType()
public BaseSlide getSlide()
ITextBox
getSlide
in interface ITextBox
public void textChanged()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |