com.aspose.words
Class TextBox

java.lang.Object
    extended by com.aspose.words.TextBox

public class TextBox 
extends java.lang.Object

Defines attributes that specify how a text is displayed inside a shape.

Use the Shape.TextBox property to access text properties of a shape. You do not create instances of the TextBox class directly.

See Also:
Shape.TextBox

Property Getters/Setters Summary
booleangetFitShapeToText()
voidsetFitShapeToText(boolean value)
           Determines whether Microsoft Word will grow the shape to fit text.
doublegetInternalMarginBottom()
voidsetInternalMarginBottom(double value)
           Specifies the inner bottom margin in points for a shape.
doublegetInternalMarginLeft()
voidsetInternalMarginLeft(double value)
           Specifies the inner left margin in points for a shape.
doublegetInternalMarginRight()
voidsetInternalMarginRight(double value)
           Specifies the inner right margin in points for a shape.
doublegetInternalMarginTop()
voidsetInternalMarginTop(double value)
           Specifies the inner top margin in points for a shape.
intgetLayoutFlow()
voidsetLayoutFlow(int value)
           Determines the flow of the text layout in a shape. The value of the property is LayoutFlow integer constant.
intgetTextBoxWrapMode()
voidsetTextBoxWrapMode(int value)
           Determines how text wraps inside a shape. The value of the property is TextBoxWrapMode integer constant.
 

Property Getters/Setters Detail

getFitShapeToText/setFitShapeToText

public boolean getFitShapeToText() / public void setFitShapeToText(boolean value)
Determines whether Microsoft Word will grow the shape to fit text.

The default value is false.


getInternalMarginBottom/setInternalMarginBottom

public double getInternalMarginBottom() / public void setInternalMarginBottom(double value)
Specifies the inner bottom margin in points for a shape.

The default value is 1/20 inch.


getInternalMarginLeft/setInternalMarginLeft

public double getInternalMarginLeft() / public void setInternalMarginLeft(double value)
Specifies the inner left margin in points for a shape.

The default value is 1/10 inch.


getInternalMarginRight/setInternalMarginRight

public double getInternalMarginRight() / public void setInternalMarginRight(double value)
Specifies the inner right margin in points for a shape.

The default value is 1/10 inch.


getInternalMarginTop/setInternalMarginTop

public double getInternalMarginTop() / public void setInternalMarginTop(double value)
Specifies the inner top margin in points for a shape.

The default value is 1/20 inch.


getLayoutFlow/setLayoutFlow

public int getLayoutFlow() / public void setLayoutFlow(int value)
Determines the flow of the text layout in a shape. The value of the property is LayoutFlow integer constant.

The default value is LayoutFlow.HORIZONTAL.


getTextBoxWrapMode/setTextBoxWrapMode

public int getTextBoxWrapMode() / public void setTextBoxWrapMode(int value)
Determines how text wraps inside a shape. The value of the property is TextBoxWrapMode integer constant.

The default value is TextBoxWrapMode.SQUARE.


See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.