public class TextBox
extends java.lang.Object
Use the Shape.getTextBox() property to access text properties of a shape. You do not create instances of the TextBox class directly.
Shape.getTextBox()| Modifier and Type | Method and Description |
|---|---|
void |
breakForwardLink()
Breaks the link to the next TextBox.
|
boolean |
getFitShapeToText()
Determines whether Microsoft Word will grow the shape to fit text.
|
double |
getInternalMarginBottom()
Specifies the inner bottom margin in points for a shape.
|
double |
getInternalMarginLeft()
Specifies the inner left margin in points for a shape.
|
double |
getInternalMarginRight()
Specifies the inner right margin in points for a shape.
|
double |
getInternalMarginTop()
Specifies the inner top margin in points for a shape.
|
int |
getLayoutFlow()
Determines the flow of the text layout in a shape.
|
TextBox |
getNext()
Gets a TextBox that represents the next TextBox in a sequence of shapes.
|
Shape |
getParent()
Gets a parent shape for the TextBox.
|
TextBox |
getPrevious()
Returns a TextBox that represents the previous TextBox in a sequence of shapes.
|
int |
getTextBoxWrapMode()
Determines how text wraps inside a shape.
|
int |
getVerticalAnchor()
Specifies the vertical alignment of the text within a shape.
|
boolean |
isValidLinkTarget(TextBox target)
Determines whether this TextBox can be linked to the target Textbox.
|
void |
setFitShapeToText(boolean value)
Determines whether Microsoft Word will grow the shape to fit text.
|
void |
setInternalMarginBottom(double value)
Specifies the inner bottom margin in points for a shape.
|
void |
setInternalMarginLeft(double value)
Specifies the inner left margin in points for a shape.
|
void |
setInternalMarginRight(double value)
Specifies the inner right margin in points for a shape.
|
void |
setInternalMarginTop(double value)
Specifies the inner top margin in points for a shape.
|
void |
setLayoutFlow(int value)
Determines the flow of the text layout in a shape.
|
void |
setNext(TextBox value)
Sets a TextBox that represents the next TextBox in a sequence of shapes.
|
void |
setTextBoxWrapMode(int value)
Determines how text wraps inside a shape.
|
void |
setVerticalAnchor(int value)
Specifies the vertical alignment of the text within a shape.
|
public double getInternalMarginLeft()
The default value is 1/10 inch.
double value.public void setInternalMarginLeft(double value)
The default value is 1/10 inch.
value - The corresponding double value.public double getInternalMarginRight()
The default value is 1/10 inch.
double value.public void setInternalMarginRight(double value)
The default value is 1/10 inch.
value - The corresponding double value.public double getInternalMarginTop()
The default value is 1/20 inch.
double value.public void setInternalMarginTop(double value)
The default value is 1/20 inch.
value - The corresponding double value.public double getInternalMarginBottom()
The default value is 1/20 inch.
double value.public void setInternalMarginBottom(double value)
The default value is 1/20 inch.
value - The corresponding double value.public boolean getFitShapeToText()
The default value is false.
boolean value.public void setFitShapeToText(boolean value)
The default value is false.
value - The corresponding boolean value.public int getLayoutFlow()
The default value is LayoutFlow.HORIZONTAL.
int value. The returned value is one of LayoutFlow constants.public void setLayoutFlow(int value)
The default value is LayoutFlow.HORIZONTAL.
value - The corresponding int value. The value must be one of LayoutFlow constants.public int getTextBoxWrapMode()
The default value is TextBoxWrapMode.SQUARE.
int value. The returned value is one of TextBoxWrapMode constants.public void setTextBoxWrapMode(int value)
The default value is TextBoxWrapMode.SQUARE.
value - The corresponding int value. The value must be one of TextBoxWrapMode constants.public int getVerticalAnchor()
The default value is TextBoxAnchor.TOP.
int value. The returned value is one of TextBoxAnchor constants.public void setVerticalAnchor(int value)
The default value is TextBoxAnchor.TOP.
value - The corresponding int value. The value must be one of TextBoxAnchor constants.public boolean isValidLinkTarget(TextBox target)
public TextBox getNext()
public void setNext(TextBox value)
value - A TextBox that represents the next TextBox in a sequence of shapes.public TextBox getPrevious()
public void breakForwardLink()
public Shape getParent()