Aspose::Cells::Drawing::Texts::ShapeTextAlignment class
Contents
[
Hide
]ShapeTextAlignment class
Represents the setting of shape’s text alignment;.
class ShapeTextAlignment
Methods
| Method | Description |
|---|---|
| Equals(const Aspose::Cells::Object& obj) | Determines whether this instance has the same value as another specified ShapeTextAlignment object. |
| GetAutoSize() | Indicates if size of shape is adjusted automatically according to its content. |
| GetBottomMarginPt() | Returns the bottom margin in unit of Points. |
| GetHashCode() | |
| GetLeftMarginPt() | Returns the left margin in unit of Points. |
| GetNumberOfColumns() | Gets and sets the number of columns of text in the bounding rectangle. |
| GetRightMarginPt() | Returns the right margin in unit of Points. |
| GetRotateTextWithShape() | Indicates whether rotating text with shape. |
| GetRotationAngle() | Gets and sets the rotation of the shape. |
| GetTextHorizontalOverflow() | Gets and sets the text horizontal overflow type of the text box. |
| GetTextShapeType() | Gets and set the transform type of text. |
| GetTextVerticalOverflow() | Gets and sets the text vertical overflow type of the text box. |
| GetTextVerticalType() | Gets and sets the text direction. |
| GetTopMarginPt() | Returns the top margin in unit of Points. |
| IsAutoMargin() | Indicates whether the margin of the text frame is automatic. |
| IsLockedText() | Indicates whether the shape is locked when worksheet is protected. |
| IsNull() const | Checks whether the implementation object is nullptr. |
| IsTextWrapped() | Gets or sets the text wrapped type of the shape which contains text. |
| explicit operator bool() const | operator bool() |
| operator=(const ShapeTextAlignment& src) | operator= |
| SetAutoSize(bool value) | Indicates if size of shape is adjusted automatically according to its content. |
| SetBottomMarginPt(double value) | Returns the bottom margin in unit of Points. |
| SetIsAutoMargin(bool value) | Indicates whether the margin of the text frame is automatic. |
| SetIsLockedText(bool value) | Indicates whether the shape is locked when worksheet is protected. |
| SetIsTextWrapped(bool value) | Gets or sets the text wrapped type of the shape which contains text. |
| SetLeftMarginPt(double value) | Returns the left margin in unit of Points. |
| SetNumberOfColumns(int32_t value) | Gets and sets the number of columns of text in the bounding rectangle. |
| SetRightMarginPt(double value) | Returns the right margin in unit of Points. |
| SetRotateTextWithShape(bool value) | Indicates whether rotating text with shape. |
| SetRotationAngle(double value) | Gets and sets the rotation of the shape. |
| SetTextHorizontalOverflow(TextOverflowType value) | Gets and sets the text horizontal overflow type of the text box. |
| SetTextShapeType(AutoShapeType value) | Gets and set the transform type of text. |
| SetTextVerticalOverflow(TextOverflowType value) | Gets and sets the text vertical overflow type of the text box. |
| SetTextVerticalType(TextVerticalType value) | Gets and sets the text direction. |
| SetTopMarginPt(double value) | Returns the top margin in unit of Points. |
| ShapeTextAlignment(ShapeTextAlignment_Impl* impl) | Constructs from an implementation object. |
| ShapeTextAlignment(const ShapeTextAlignment& src) | Copy constructor. |
| ~ShapeTextAlignment() | Destructor. |
Fields
| Field | Description |
|---|---|
| _impl | The implementation object. |
Examples
Aspose::Cells::Startup();
//Instantiating a Workbook object
Workbook workbook;
Shape shape = workbook.GetWorksheets().Get(0).GetShapes().AddRectangle(1, 0, 1, 0, 50, 100);
ShapeTextAlignment shapeTextAlignment = shape.GetTextBody().GetTextAlignment();
Aspose::Cells::Cleanup();
See Also
- Namespace Aspose::Cells::Drawing::Texts
- Library Aspose.Cells for C++