aspose.cells

Class ShapeTextAlignment

Represents the setting of shape's text alignment;

Property Getters/Setters Summary
functiongetAutoSize()
function
           Indicates if size of shape is adjusted automatically according to its content.
functiongetBottomMarginPt()
function
           Returns the bottom margin in unit of Points
functionisAutoMargin()
function
           Indicates whether the margin of the text frame is automatic.
functionisLockedText()
function
           Indicates whether the shape is locked when worksheet is protected.
functionisTextWrapped()
function
           Gets and sets the text wrapped type of the shape which contains text.
functiongetLeftMarginPt()
function
           Returns the left margin in unit of Points
functiongetNumberOfColumns()
function
           Gets and sets the number of columns of text in the bounding rectangle.
functiongetRightMarginPt()
function
           Returns the right margin in unit of Points
functiongetRotateTextWithShape()
function
           Indicates whether rotating text with shape.
functiongetRotationAngle()
function
           Gets and sets the rotation of the shape.
functiongetTextHorizontalOverflow()
function
           Gets and sets the text horizontal overflow type of the text box. The value of the property is TextOverflowType integer constant.
functiongetTextShapeType()
function
           Gets and set the transform type of text. The value of the property is AutoShapeType integer constant.
functiongetTextVerticalOverflow()
function
           Gets and sets the text vertical overflow type of the text box. The value of the property is TextOverflowType integer constant.
functiongetTextVerticalType()
function
           Gets and sets the text direction. The value of the property is TextVerticalType integer constant.
functiongetTopMarginPt()
function
           Returns the top margin in unit of Points
 
Method Summary
functionequals(obj)
Determines whether this instance has the same value as another specified ShapeTextAlignment object.
functionhashCode()
 

    • Property Getters/Setters Detail

      • isTextWrapped/setTextWrapped : boolean 

        function isTextWrapped() / function setTextWrapped(value)
        
        Gets and sets the text wrapped type of the shape which contains text.
      • getRotateTextWithShape/setRotateTextWithShape : boolean 

        function getRotateTextWithShape() / function setRotateTextWithShape(value)
        
        Indicates whether rotating text with shape.
      • getTextVerticalOverflow/setTextVerticalOverflow : Number 

        function getTextVerticalOverflow() / function setTextVerticalOverflow(value)
        
        Gets and sets the text vertical overflow type of the text box. The value of the property is TextOverflowType integer constant.
      • getTextHorizontalOverflow/setTextHorizontalOverflow : Number 

        function getTextHorizontalOverflow() / function setTextHorizontalOverflow(value)
        
        Gets and sets the text horizontal overflow type of the text box. The value of the property is TextOverflowType integer constant.
      • getRotationAngle/setRotationAngle : Number 

        function getRotationAngle() / function setRotationAngle(value)
        
        Gets and sets the rotation of the shape.
      • getTextVerticalType/setTextVerticalType : Number 

        function getTextVerticalType() / function setTextVerticalType(value)
        
        Gets and sets the text direction. The value of the property is TextVerticalType integer constant.
      • isLockedText/setLockedText : boolean 

        function isLockedText() / function setLockedText(value)
        
        Indicates whether the shape is locked when worksheet is protected. Only works when worksheet is protected.
      • getAutoSize/setAutoSize : boolean 

        function getAutoSize() / function setAutoSize(value)
        
        Indicates if size of shape is adjusted automatically according to its content.
      • getTextShapeType/setTextShapeType : Number 

        function getTextShapeType() / function setTextShapeType(value)
        
        Gets and set the transform type of text. The value of the property is AutoShapeType integer constant.
      • getTopMarginPt/setTopMarginPt : Number 

        function getTopMarginPt() / function setTopMarginPt(value)
        
        Returns the top margin in unit of Points
      • getBottomMarginPt/setBottomMarginPt : Number 

        function getBottomMarginPt() / function setBottomMarginPt(value)
        
        Returns the bottom margin in unit of Points
      • getLeftMarginPt/setLeftMarginPt : Number 

        function getLeftMarginPt() / function setLeftMarginPt(value)
        
        Returns the left margin in unit of Points
      • getRightMarginPt/setRightMarginPt : Number 

        function getRightMarginPt() / function setRightMarginPt(value)
        
        Returns the right margin in unit of Points
      • isAutoMargin/setAutoMargin : boolean 

        function isAutoMargin() / function setAutoMargin(value)
        
        Indicates whether the margin of the text frame is automatic.
      • getNumberOfColumns/setNumberOfColumns : Number 

        function getNumberOfColumns() / function setNumberOfColumns(value)
        
        Gets and sets the number of columns of text in the bounding rectangle.
    • Method Detail

      • equals

        function equals(obj)
        Determines whether this instance has the same value as another specified ShapeTextAlignment object.
        Parameters:
        obj: Object - 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.
      • hashCode

        function hashCode()
        Returns: