|
||||||||
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. |
double |
getMarginBottom()
Returns the bottom margin (mm) of text in a TextHolder. |
double |
getMarginLeft()
Returns the left margin (mm) of text in a TextHolder. |
double |
getMarginRight()
Returns the right margin (mm) of text in a TextHolder. |
double |
getMarginTop()
Returns the top margin (mm) of text in a TextHolder. |
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 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(double value)
Sets the bottom margin (mm) of text in a TextHolder. |
void |
setMarginLeft(double value)
Sets the left margin (mm) of text in a TextHolder. |
void |
setMarginRight(double value)
Sets the right margin (mm) of text in a TextHolder. |
void |
setMarginTop(double 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 class Placeholder
public void setX(int value)
setX
in class Placeholder
value
- new x coordinate.public int getY()
getY
in class Placeholder
public void setY(int value)
setY
in class Placeholder
value
- new y coordinate.public int getWidth()
getWidth
in class Placeholder
public void setWidth(int value)
setWidth
in class Placeholder
value
- new width of a TextHolder.public int getHeight()
getHeight
in class Placeholder
public void setHeight(int value)
setHeight
in class Placeholder
value
- new height of a TextHolder.public double getMarginLeft()
public void setMarginLeft(double value) throws PptPropertyException
value
- new left margin.
PptPropertyException
public double getMarginRight()
public void setMarginRight(double value) throws PptPropertyException
value
- new right margin.
PptPropertyException
public double getMarginTop()
public void setMarginTop(double value) throws PptPropertyException
value
- new top margin.
PptPropertyException
public double getMarginBottom()
public void setMarginBottom(double 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 com.aspose.slides.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 |