ShapeTextAlignment

ShapeTextAlignment class

Represents the setting of shape’s text alignment;

Properties

NameTypeDescription
IsTextWrappedbooleanGets and sets the text wrapped type of the shape which contains text.
RotateTextWithShapebooleanIndicates whether rotating text with shape.
TextVerticalOverflowNumberGets and sets the text vertical overflow type of the text box. The value of the property is TextOverflowType integer con
TextHorizontalOverflowNumberGets and sets the text horizontal overflow type of the text box. The value of the property is TextOverflowType integer c
RotationAngleNumberGets and sets the rotation of the shape.
TextVerticalTypeNumberGets and sets the text direction. The value of the property is TextVerticalType integer constant.
IsLockedTextbooleanIndicates whether the shape is locked when worksheet is protected. Only works when worksheet is protected.
AutoSizebooleanIndicates if size of shape is adjusted automatically according to its content.
TextShapeTypeNumberGets and set the transform type of text. The value of the property is AutoShapeType integer constant.
TopMarginPtNumberReturns the top margin in unit of Points
BottomMarginPtNumberReturns the bottom margin in unit of Points
LeftMarginPtNumberReturns the left margin in unit of Points
RightMarginPtNumberReturns the right margin in unit of Points
IsAutoMarginbooleanIndicates whether the margin of the text frame is automatic.
NumberOfColumnsNumberGets and sets the number of columns of text in the bounding rectangle.

Methods

NameDescription
equalsDetermines whether this instance has the same value as another specified ShapeTextAlignment object.
hashCode

ShapeTextAlignment.IsTextWrapped property

Gets and sets the text wrapped type of the shape which contains text.

Type: boolean

ShapeTextAlignment.RotateTextWithShape property

Indicates whether rotating text with shape.

Type: boolean

ShapeTextAlignment.TextVerticalOverflow property

Gets and sets the text vertical overflow type of the text box. The value of the property is TextOverflowType integer constant.

Type: Number

ShapeTextAlignment.TextHorizontalOverflow property

Gets and sets the text horizontal overflow type of the text box. The value of the property is TextOverflowType integer constant.

Type: Number

ShapeTextAlignment.RotationAngle property

Gets and sets the rotation of the shape.

Type: Number

ShapeTextAlignment.TextVerticalType property

Gets and sets the text direction. The value of the property is TextVerticalType integer constant.

Type: Number

ShapeTextAlignment.IsLockedText property

Indicates whether the shape is locked when worksheet is protected. Only works when worksheet is protected.

Type: boolean

ShapeTextAlignment.AutoSize property

Indicates if size of shape is adjusted automatically according to its content.

Type: boolean

ShapeTextAlignment.TextShapeType property

Gets and set the transform type of text. The value of the property is AutoShapeType integer constant.

Type: Number

ShapeTextAlignment.TopMarginPt property

Returns the top margin in unit of Points

Type: Number

ShapeTextAlignment.BottomMarginPt property

Returns the bottom margin in unit of Points

Type: Number

ShapeTextAlignment.LeftMarginPt property

Returns the left margin in unit of Points

Type: Number

ShapeTextAlignment.RightMarginPt property

Returns the right margin in unit of Points

Type: Number

ShapeTextAlignment.IsAutoMargin property

Indicates whether the margin of the text frame is automatic.

Type: boolean

ShapeTextAlignment.NumberOfColumns property

Gets and sets the number of columns of text in the bounding rectangle.

Type: Number

equals(obj)

Determines whether this instance has the same value as another specified ShapeTextAlignment object.

ParameterTypeDescription
objObjectThe 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.

hashCode()