com.aspose.slides
Class TextFrameFormat

java.lang.Object
  extended by com.aspose.slides.TextFrameFormat
All Implemented Interfaces:
IChartTextBlockFormat, IPresentationComponent, ISlideComponent, ITextFrameFormat

public final class TextFrameFormat
extends java.lang.Object
implements ITextFrameFormat, IChartTextBlockFormat

Contains the TextFrame's formatting properties.


Method Summary
 int getAnchoringType()
           Returns or sets vertical anchor text in a TextFrame.
 int getAutofitType()
           Returns or sets text's autofit mode.
 byte getCenterText()
           If NullableBool.True then text should be centered in box horizontally.
 double getMarginBottom()
           Returns or sets the bottom margin (points) in a TextFrame.
 double getMarginLeft()
           Returns or sets the left margin (points) in a TextFrame.
 double getMarginRight()
           Returns or sets the right margin (points) in a TextFrame.
 double getMarginTop()
           Returns or sets the top margin (points) in a TextFrame.
 IPresentation getPresentation()
           Returns the parent presentation of a TextFrame.
 IBaseSlide getSlide()
           Returns the parent slide of a TextFrame.
 ITextStyle getTextStyle()
           Returns text's style.
 int getTextVerticalType()
           Determines text orientation.
 byte getWrapText()
           <b>True</b> or <b>NotDefined</b> if text is wrapped at TextFrame's margins.
 void setAnchoringType(int value)
           
 void setAutofitType(int value)
           
 void setCenterText(byte value)
           
 void setMarginBottom(double value)
           
 void setMarginLeft(double value)
           
 void setMarginRight(double value)
           
 void setMarginTop(double value)
           
 void setTextVerticalType(int value)
           
 void setWrapText(byte value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTextStyle

public ITextStyle getTextStyle()

Returns text's style. Readonly TextStyle.

Specified by:
getTextStyle in interface ITextFrameFormat

getMarginLeft

public double getMarginLeft()

Returns or sets the left margin (points) in a TextFrame. Read/write double.

Specified by:
getMarginLeft in interface ITextFrameFormat

setMarginLeft

public void setMarginLeft(double value)
Specified by:
setMarginLeft in interface ITextFrameFormat

getMarginRight

public double getMarginRight()

Returns or sets the right margin (points) in a TextFrame. Read/write double.

Specified by:
getMarginRight in interface ITextFrameFormat

setMarginRight

public void setMarginRight(double value)
Specified by:
setMarginRight in interface ITextFrameFormat

getMarginTop

public double getMarginTop()

Returns or sets the top margin (points) in a TextFrame. Read/write double.

Specified by:
getMarginTop in interface ITextFrameFormat

setMarginTop

public void setMarginTop(double value)
Specified by:
setMarginTop in interface ITextFrameFormat

getMarginBottom

public double getMarginBottom()

Returns or sets the bottom margin (points) in a TextFrame. Read/write double.

Specified by:
getMarginBottom in interface ITextFrameFormat

setMarginBottom

public void setMarginBottom(double value)
Specified by:
setMarginBottom in interface ITextFrameFormat

getWrapText

public byte getWrapText()

<b>True</b> or <b>NotDefined</b> if text is wrapped at TextFrame's margins. Read/write bool.

Specified by:
getWrapText in interface ITextFrameFormat

setWrapText

public void setWrapText(byte value)
Specified by:
setWrapText in interface ITextFrameFormat

getAnchoringType

public int getAnchoringType()

Returns or sets vertical anchor text in a TextFrame. Read/write TextAnchorType.

Specified by:
getAnchoringType in interface IChartTextBlockFormat
Specified by:
getAnchoringType in interface ITextFrameFormat

setAnchoringType

public void setAnchoringType(int value)
Specified by:
setAnchoringType in interface IChartTextBlockFormat
Specified by:
setAnchoringType in interface ITextFrameFormat

getCenterText

public byte getCenterText()

If NullableBool.True then text should be centered in box horizontally. Read/write NullableBool.

Specified by:
getCenterText in interface IChartTextBlockFormat
Specified by:
getCenterText in interface ITextFrameFormat

setCenterText

public void setCenterText(byte value)
Specified by:
setCenterText in interface IChartTextBlockFormat
Specified by:
setCenterText in interface ITextFrameFormat

getTextVerticalType

public int getTextVerticalType()

Determines text orientation. Read/write TextVerticalType.

Specified by:
getTextVerticalType in interface IChartTextBlockFormat
Specified by:
getTextVerticalType in interface ITextFrameFormat

setTextVerticalType

public void setTextVerticalType(int value)
Specified by:
setTextVerticalType in interface IChartTextBlockFormat
Specified by:
setTextVerticalType in interface ITextFrameFormat

getAutofitType

public int getAutofitType()

Returns or sets text's autofit mode. Read/write TextAutofitType.

Specified by:
getAutofitType in interface ITextFrameFormat

setAutofitType

public void setAutofitType(int value)
Specified by:
setAutofitType in interface ITextFrameFormat

getSlide

public IBaseSlide getSlide()

Returns the parent slide of a TextFrame. Read-only BaseSlide.

Specified by:
getSlide in interface ISlideComponent

getPresentation

public IPresentation getPresentation()

Returns the parent presentation of a TextFrame. Read-only Presentation.

Specified by:
getPresentation in interface IPresentationComponent