Interface ITextFrame
public interface ITextFrame
Represents the text frame in the
com.grapecity.documents.excel.IShape object.-
Method Summary
Modifier and TypeMethodDescriptionGets the text direction.Gets horizontal anchor for Text frame in the shapefloatGets the distance (in points) between the bottom of the text frame and the bottom of the inscribed rectangle of the shape that contains the text.floatGets the distance (in points) between the left of the text frame and the bottom of the inscribed rectangle of the shape that contains the text.floatGets the distance (in points) between the right of the text frame and the bottom of the inscribed rectangle of the shape that contains the text.floatGets the distance (in points) between the top of the text frame and the bottom of the inscribed rectangle of the shape that contains the text.Returns theITextRangeobject that represents the text in the object.Gets vertical anchor for Text frame in the shape.voidsetDirection(TextDirection value) Sets the text direction.voidSets horizontal anchor for Text frame in the shape
If you want to set the horizontal alignment of the text, useITextRange.setTextAlignment(TextAlignmentAnchor textAlignment)voidsetMarginBottom(float bottom) Sets the distance (in points) between the bottom of the text frame and the bottom of the inscribed rectangle of the shape that contains the text.voidsetMarginLeft(float left) Sets the distance (in points) between the left of the text frame and the bottom of the inscribed rectangle of the shape that contains the text.voidsetMarginRight(float right) Sets the distance (in points) between the right of the text frame and the bottom of the inscribed rectangle of the shape that contains the text.voidsetMarginTop(float top) Sets the distance (in points) between the top of the text frame and the bottom of the inscribed rectangle of the shape that contains the text.voidsetVerticalAnchor(VerticalAnchor value) Sets vertical anchor for Text frame in the shape.
-
Method Details
-
getMarginBottom
float getMarginBottom()Gets the distance (in points) between the bottom of the text frame and the bottom of the inscribed rectangle of the shape that contains the text. -
setMarginBottom
void setMarginBottom(float bottom) Sets the distance (in points) between the bottom of the text frame and the bottom of the inscribed rectangle of the shape that contains the text. -
getMarginLeft
float getMarginLeft()Gets the distance (in points) between the left of the text frame and the bottom of the inscribed rectangle of the shape that contains the text. -
setMarginLeft
void setMarginLeft(float left) Sets the distance (in points) between the left of the text frame and the bottom of the inscribed rectangle of the shape that contains the text. -
getMarginRight
float getMarginRight()Gets the distance (in points) between the right of the text frame and the bottom of the inscribed rectangle of the shape that contains the text. -
setMarginRight
void setMarginRight(float right) Sets the distance (in points) between the right of the text frame and the bottom of the inscribed rectangle of the shape that contains the text. -
getMarginTop
float getMarginTop()Gets the distance (in points) between the top of the text frame and the bottom of the inscribed rectangle of the shape that contains the text. -
setMarginTop
void setMarginTop(float top) Sets the distance (in points) between the top of the text frame and the bottom of the inscribed rectangle of the shape that contains the text. -
getDirection
TextDirection getDirection()Gets the text direction. -
setDirection
Sets the text direction. -
getTextRange
ITextRange getTextRange()Returns theITextRangeobject that represents the text in the object. -
getHorizontalAnchor
HorizontalAnchor getHorizontalAnchor()Gets horizontal anchor for Text frame in the shape -
setHorizontalAnchor
Sets horizontal anchor for Text frame in the shape
If you want to set the horizontal alignment of the text, useITextRange.setTextAlignment(TextAlignmentAnchor textAlignment) -
getVerticalAnchor
VerticalAnchor getVerticalAnchor()Gets vertical anchor for Text frame in the shape. -
setVerticalAnchor
Sets vertical anchor for Text frame in the shape.
-