|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Placeholder
com.aspose.slides.TextHolder
public final class TextHolder
Represents the text placeholder.
Method Summary | |
---|---|
void |
fitTextToShape()
Decreases Paragraph's SpaceWithin and/or FontHeight to fit text to a TextHolder's rectangle. |
int |
getAnchorText()
Returns the anchor text in a TextHolder. |
EffectiveTabs |
getEffectiveTabs(int ParagraphNumber)
Returns a list of tabulations for a paragraph, including implicitly generated. |
int |
getHeight()
Returns the height of a TextHolder. |
Links |
getLinks()
Returns the list of all links in a frame. |
float |
getMarginBottom()
Returns the bottom margin (mm) of text in a TextHolder. |
float |
getMarginLeft()
Returns the left margin (mm) of text in a TextHolder. |
float |
getMarginRight()
Returns the right margin (mm) of text in a TextHolder. |
float |
getMarginTop()
Returns the top margin (mm) of text in a TextHolder. |
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 TextHolder. |
Tabs |
getTabs()
Deprecated. Use TextRuler.Tabs property instead. |
java.lang.String |
getText()
Returns the plain text for a TextHolder. |
TextRuler |
getTextRuler()
Returns the TextRuler of a textholder. |
int |
getWidth()
Returns the width of a TextHolder. |
int |
getX()
Returns the x-coordinate of the upper-left corner of a TextHolder. |
int |
getY()
Returns the y-coordinate of the upper-left corner of a TextHolder. |
boolean |
isFitShapeToText()
Determines whether the size of TextHolder should be fit to the text size. |
boolean |
isRotateTextBy90Degrees()
Determines whether the text should be rotated by 90 degree inside TextHolder. |
boolean |
isWrapText()
Determines whether the text should be wrapped at TextHolder's margins. |
void |
setAnchorText(int value)
Sets the anchor text in a TextHolder. |
void |
setFitShapeToText(boolean value)
Sets whether the size of TextHolder should be fit to the text size. |
void |
setHeight(int value)
Sets the height of a TextHolder. |
void |
setMarginBottom(float value)
Sets the bottom margin (mm) of text in a TextHolder. |
void |
setMarginLeft(float value)
Sets the left margin (mm) of text in a TextHolder. |
void |
setMarginRight(float value)
Sets the right margin (mm) of text in a TextHolder. |
void |
setMarginTop(float value)
Sets the top margin (mm) of text in a TextHolder. |
void |
setRotateTextBy90Degrees(boolean value)
|
void |
setText(java.lang.String value)
Sets the plain text for a TextHolder. |
void |
setWidth(int value)
Sets the width of a TextHolder. |
void |
setWrapText(boolean value)
Sets whether the text should be wrapped at TextHolder's margins. |
void |
setX(int value)
Sets the x-coordinate of the upper-left corner of a TextHolder. |
void |
setY(int value)
Sets the y-coordinate of the upper-left corner of a TextHolder. |
void |
textChanged()
Recalculates text parameters in a TextHolder. |
Methods inherited from class com.aspose.slides.Placeholder |
---|
getAlternativeText, getFillFormat, getLineFormat, getParent, getPlaceholderType, getShadowFormat, getShapeRef, getThreeDFormat, setAlternativeText |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getText()
public void setText(java.lang.String value)
value
- the plain text.public Paragraphs getParagraphs()
Paragraphs
.public Links getLinks()
Links
.public Tabs getTabs()
Tabs
.public EffectiveTabs getEffectiveTabs(int ParagraphNumber)
ParagraphNumber
- Index of paragraph, for which tabulation positions will be generated.
EffectiveTabs
.public int getX()
getX
in interface IShape
getX
in class Placeholder
public void setX(int value)
setX
in interface IShape
setX
in class Placeholder
value
- new x coordinate.public int getY()
getY
in interface IShape
getY
in class Placeholder
public void setY(int value)
setY
in interface IShape
setY
in class Placeholder
value
- new y coordinate.public int getWidth()
getWidth
in interface IShape
getWidth
in class Placeholder
public void setWidth(int value)
setWidth
in interface IShape
setWidth
in class Placeholder
value
- new width of a TextHolder.public int getHeight()
getHeight
in interface IShape
getHeight
in class Placeholder
public void setHeight(int value)
setHeight
in interface IShape
setHeight
in class Placeholder
value
- new height of a TextHolder.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 TextHolder's size to the text.public boolean isRotateTextBy90Degrees()
public void setRotateTextBy90Degrees(boolean value)
public void fitTextToShape()
public TextRuler getTextRuler()
public Slide getSlide()
Slide
for a TextHolder.
Slide
.public LevelStyle getMasterStyle(short depth)
depth
- Depth level of text.
public void textChanged()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |