com.aspose.words

Class TextBox

  • java.lang.Object
    • 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()
void
setFitShapeToText(booleanvalue)
           Determines whether Microsoft Word will grow the shape to fit text.
doublegetInternalMarginBottom()
void
           Specifies the inner bottom margin in points for a shape.
doublegetInternalMarginLeft()
void
           Specifies the inner left margin in points for a shape.
doublegetInternalMarginRight()
void
           Specifies the inner right margin in points for a shape.
doublegetInternalMarginTop()
void
           Specifies the inner top margin in points for a shape.
intgetLayoutFlow()
void
setLayoutFlow(intvalue)
           Determines the flow of the text layout in a shape. The value of the property is LayoutFlow integer constant.
intgetTextBoxWrapMode()
void
           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.