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.
TextVerticalOverflowintGets and sets the text vertical overflow type of the text box. The value of the property is TextOverflowType integer con
TextHorizontalOverflowintGets and sets the text horizontal overflow type of the text box. The value of the property is TextOverflowType integer c
RotationAnglefloatGets and sets the rotation of the shape.
TextVerticalTypeintGets 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.
TextShapeTypeintGets and set the transform type of text. The value of the property is AutoShapeType integer constant.
TopMarginPtfloatReturns the top margin in unit of Points
BottomMarginPtfloatReturns the bottom margin in unit of Points
LeftMarginPtfloatReturns the left margin in unit of Points
RightMarginPtfloatReturns the right margin in unit of Points
IsAutoMarginbooleanIndicates whether the margin of the text frame is automatic.
NumberOfColumnsintGets 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: int

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: int

ShapeTextAlignment.RotationAngle property

Gets and sets the rotation of the shape.

Type: float

ShapeTextAlignment.TextVerticalType property

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

Type: int

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: int

ShapeTextAlignment.TopMarginPt property

Returns the top margin in unit of Points

Type: float

ShapeTextAlignment.BottomMarginPt property

Returns the bottom margin in unit of Points

Type: float

ShapeTextAlignment.LeftMarginPt property

Returns the left margin in unit of Points

Type: float

ShapeTextAlignment.RightMarginPt property

Returns the right margin in unit of Points

Type: float

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: int

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()