TextBox

Overview

TextBox is a class in Aspose.Words FOSS for Java.

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

Edition status of its 36 listed members (a property and its accessor methods are listed separately, overloads once): 36 not yet exercised by a verified example.

This class declares 24 methods for TextBox objects in Java programs. Available methods include: breakForwardLink, getFitShapeToText, getInternalMarginBottom, getInternalMarginLeft, getInternalMarginRight, getInternalMarginTop, getLayoutFlow, getNext, getNoTextRotation, getParent, getPrevious, getTextBoxWrapMode, and 12 additional methods. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: fitShapeToText, internalMarginBottom, internalMarginLeft, internalMarginRight, internalMarginTop, layoutFlow, and 6 more.

Properties

NameTypeAccessDescription
internalMarginLeftdoubleRead/WriteSpecifies the inner left margin in points for a shape.
internalMarginRightdoubleRead/WriteSpecifies the inner right margin in points for a shape.
internalMarginTopdoubleRead/WriteSpecifies the inner top margin in points for a shape.
internalMarginBottomdoubleRead/WriteSpecifies the inner bottom margin in points for a shape.
fitShapeToTextbooleanRead/WriteDetermines whether Microsoft Word will grow the shape to fit text.
layoutFlowintRead/WriteDetermines the flow of the text layout in a shape.
textBoxWrapModeintRead/WriteDetermines how text wraps inside a shape.
noTextRotationbooleanRead/WriteGets or sets a boolean value indicating either text of the TextBox should not rotate when the shape is rotated.
verticalAnchorintRead/WriteSpecifies the vertical alignment of the text within a shape.
nextTextBoxRead/WriteReturns or sets a TextBox that represents the next TextBox in a sequence of shapes.
previousTextBoxReadReturns a TextBox that represents the previous TextBox in a sequence of shapes.
parentShapeReadGets a parent shape for the TextBox.

Methods

SignatureDescription
getInternalMarginLeft() → doubleSpecifies the inner left margin in points for a shape.
setInternalMarginLeft(value: double)Sets the internal margin left value.
getInternalMarginRight() → doubleSpecifies the inner right margin in points for a shape.
setInternalMarginRight(value: double)Sets the internal margin right value.
getInternalMarginTop() → doubleSpecifies the inner top margin in points for a shape.
setInternalMarginTop(value: double)Sets the internal margin top value.
getInternalMarginBottom() → doubleSpecifies the inner bottom margin in points for a shape.
setInternalMarginBottom(value: double)Sets the internal margin bottom value.
getFitShapeToText() → booleanDetermines whether Microsoft Word will grow the shape to fit text.
setFitShapeToText(value: boolean)Sets the fit shape to text value.
getLayoutFlow() → intDetermines the flow of the text layout in a shape.
setLayoutFlow(value: int)Sets the layout flow value.
getTextBoxWrapMode() → intDetermines how text wraps inside a shape.
setTextBoxWrapMode(value: int)Sets the text box wrap mode value.
getNoTextRotation() → booleanGets or sets a boolean value indicating either text of the TextBox should not rotate when the shape is rotated.
setNoTextRotation(value: boolean)Sets the no text rotation value.
getVerticalAnchor() → intSpecifies the vertical alignment of the text within a shape.
setVerticalAnchor(value: int)Sets the vertical anchor value.
isValidLinkTarget(target: TextBox) → booleanDetermines whether this TextBox can be linked to the target TextBox.
getNext() → TextBoxReturns or sets a TextBox that represents the next TextBox in a sequence of shapes.
setNext(value: TextBox)Sets the next value.
getPrevious() → TextBoxReturns a TextBox that represents the previous TextBox in a sequence of shapes.
breakForwardLink()Breaks the link to the next TextBox.
getParent() → ShapeGets a parent shape for the TextBox.

See Also