java.lang.Object
com.aspose.cells.ShapeTextAlignment
public class ShapeTextAlignment
- extends java.lang.Object
Represents the setting of shape's text alignment;
Example:
//Instantiating a Workbook object
Workbook workbook = new Workbook();
Shape shape = workbook.getWorksheets().get(0).getShapes().addRectangle(1, 0, 1, 0, 50, 100);
ShapeTextAlignment shapeTextAlignment = shape.getTextBody().getTextAlignment();
//do your business
|
Method Summary |
boolean | equals(java.lang.Object obj) | |
|
Determines whether this instance has the same value as another specified ShapeTextAlignment object.
|
int | hashCode() | |
| |
|
Property Getters/Setters Detail |
isTextWrapped/setTextWrapped | |
public boolean isTextWrapped() / public void setTextWrapped(boolean value)
|
-
Gets and sets the text wrapped type of the shape which contains text.
Example:
shapeTextAlignment.setTextWrapped(true);
setTextWrapped | |
public void setTextWrapped(boolean value)
|
-
Gets and sets the text wrapped type of the shape which contains text.
Example:
shapeTextAlignment.setTextWrapped(true);
getRotateTextWithShape/setRotateTextWithShape | |
public boolean getRotateTextWithShape() / public void setRotateTextWithShape(boolean value)
|
-
Indicates whether rotating text with shape.
Example:
shapeTextAlignment.setRotateTextWithShape(true);
setRotateTextWithShape | |
public void setRotateTextWithShape(boolean value)
|
-
Indicates whether rotating text with shape.
Example:
shapeTextAlignment.setRotateTextWithShape(true);
getTextVerticalOverflow/setTextVerticalOverflow | |
public int getTextVerticalOverflow() / public void setTextVerticalOverflow(int value)
|
-
Gets and sets the text vertical overflow type of the text box.
The value of the property is TextOverflowType integer constant.
Example:
shapeTextAlignment.setTextVerticalOverflow(TextOverflowType.CLIP);
setTextVerticalOverflow | |
public void setTextVerticalOverflow(int value)
|
-
Gets and sets the text vertical overflow type of the text box.
The value of the property is TextOverflowType integer constant.
Example:
shapeTextAlignment.setTextVerticalOverflow(TextOverflowType.CLIP);
getTextHorizontalOverflow/setTextHorizontalOverflow | |
public int getTextHorizontalOverflow() / public void setTextHorizontalOverflow(int value)
|
-
Gets and sets the text horizontal overflow type of the text box.
The value of the property is TextOverflowType integer constant.
Example:
shapeTextAlignment.setTextHorizontalOverflow(TextOverflowType.CLIP);
setTextHorizontalOverflow | |
public void setTextHorizontalOverflow(int value)
|
-
Gets and sets the text horizontal overflow type of the text box.
The value of the property is TextOverflowType integer constant.
Example:
shapeTextAlignment.setTextHorizontalOverflow(TextOverflowType.CLIP);
getRotationAngle/setRotationAngle | |
public double getRotationAngle() / public void setRotationAngle(double value)
|
-
Gets and sets the rotation of the shape.
Example:
shapeTextAlignment.setRotationAngle(90);
setRotationAngle | |
public void setRotationAngle(double value)
|
-
Gets and sets the rotation of the shape.
Example:
shapeTextAlignment.setRotationAngle(90);
getTextVerticalType/setTextVerticalType | |
public int getTextVerticalType() / public void setTextVerticalType(int value)
|
-
Gets and sets the text direction.
The value of the property is TextVerticalType integer constant.
Example:
shapeTextAlignment.setTextVerticalType(com.aspose.cells.TextVerticalType.HORIZONTAL);
setTextVerticalType | |
public void setTextVerticalType(int value)
|
-
Gets and sets the text direction.
The value of the property is TextVerticalType integer constant.
Example:
shapeTextAlignment.setTextVerticalType(com.aspose.cells.TextVerticalType.HORIZONTAL);
getAutoSize/setAutoSize | |
public boolean getAutoSize() / public void setAutoSize(boolean value)
|
-
Indicates if size of shape is adjusted automatically according to its content.
Example:
shapeTextAlignment.setAutoSize(false);
setAutoSize | |
public void setAutoSize(boolean value)
|
-
Indicates if size of shape is adjusted automatically according to its content.
Example:
shapeTextAlignment.setAutoSize(false);
getTextShapeType/setTextShapeType | |
public int getTextShapeType() / public void setTextShapeType(int value)
|
-
Gets and set the transform type of text.
The value of the property is AutoShapeType integer constant.
Example:
//Usually do not modify this value unless you know exactly what the modification will result in
shapeTextAlignment.setTextShapeType(AutoShapeType.TEXT_BOX);
setTextShapeType | |
public void setTextShapeType(int value)
|
-
Gets and set the transform type of text.
The value of the property is AutoShapeType integer constant.
Example:
//Usually do not modify this value unless you know exactly what the modification will result in
shapeTextAlignment.setTextShapeType(AutoShapeType.TEXT_BOX);
getTopMarginPt/setTopMarginPt | |
public double getTopMarginPt() / public void setTopMarginPt(double value)
|
-
Returns the top margin in unit of Points
Example:
shapeTextAlignment.setTopMarginPt(2.0d);
setTopMarginPt | |
public void setTopMarginPt(double value)
|
-
Returns the top margin in unit of Points
Example:
shapeTextAlignment.setTopMarginPt(2.0d);
getBottomMarginPt/setBottomMarginPt | |
public double getBottomMarginPt() / public void setBottomMarginPt(double value)
|
-
Returns the bottom margin in unit of Points
Example:
shapeTextAlignment.setBottomMarginPt(2.0d);
setBottomMarginPt | |
public void setBottomMarginPt(double value)
|
-
Returns the bottom margin in unit of Points
Example:
shapeTextAlignment.setBottomMarginPt(2.0d);
getLeftMarginPt/setLeftMarginPt | |
public double getLeftMarginPt() / public void setLeftMarginPt(double value)
|
-
Returns the left margin in unit of Points
Example:
shapeTextAlignment.setLeftMarginPt(2.0d);
setLeftMarginPt | |
public void setLeftMarginPt(double value)
|
-
Returns the left margin in unit of Points
Example:
shapeTextAlignment.setLeftMarginPt(2.0d);
getRightMarginPt/setRightMarginPt | |
public double getRightMarginPt() / public void setRightMarginPt(double value)
|
-
Returns the right margin in unit of Points
Example:
shapeTextAlignment.setRightMarginPt(2.0d);
setRightMarginPt | |
public void setRightMarginPt(double value)
|
-
Returns the right margin in unit of Points
Example:
shapeTextAlignment.setRightMarginPt(2.0d);
isAutoMargin/setAutoMargin | |
public boolean isAutoMargin() / public void setAutoMargin(boolean value)
|
-
Indicates whether the margin of the text frame is automatic.
Example:
shapeTextAlignment.setAutoMargin(true);
setAutoMargin | |
public void setAutoMargin(boolean value)
|
-
Indicates whether the margin of the text frame is automatic.
Example:
shapeTextAlignment.setAutoMargin(true);
getNumberOfColumns/setNumberOfColumns | |
public int getNumberOfColumns() / public void setNumberOfColumns(int value)
|
-
Gets and sets the number of columns of text in the bounding rectangle.
setNumberOfColumns | |
public void setNumberOfColumns(int value)
|
-
Gets and sets the number of columns of text in the bounding rectangle.
equals | |
public boolean equals(java.lang.Object obj) |
-
Determines whether this instance has the same value as another specified ShapeTextAlignment object.
- Parameters:
obj - The ShapeTextAlignment object to compare with this instance.
- Returns:
- true if the value of the obj parameter is the same as the value of this instance; otherwise, false. If obj is null, this method returns false.
Example:
//You have to make sure that the index value in this line of code exists
ShapeTextAlignment obj = workbook.getWorksheets().get(0).getShapes().get(0).getTextBody().getTextAlignment();
if (shapeTextAlignment.equals(obj))
{
//do what you want
}
hashCode | |
public int hashCode() |
- Returns:
Example:
int hashCode = shapeTextAlignment.hashCode();
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.