com.aspose.diagram

Class TextBlock

  • java.lang.Object
    • com.aspose.diagram.TextBlock
  • All Implemented Interfaces:
    com.aspose.diagram.b.a.i, java.lang.Cloneable
    public class TextBlock 
    extends java.lang.Object

Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape's text block.

Property Getters/Setters Summary
DoubleValuegetBottomMargin()
void
           Determines the distance between the bottom border of the text block and the last line of text it contains. The default is 4 pt. This value is independent of the scale of the drawing. If the drawing is scaled, the bottom margin remains the same.
DoubleValuegetDefaultTabStop()
void
           Specifies the interval of the default tab stops in a text block.
intgetDel()
void
setDel(intvalue)
           A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.
DoubleValuegetLeftMargin()
void
           Specifies the distance between the left border of the text block and the text it contains. This value is independent of the scale of the drawing. If the drawing is scaled, the left margin remains the same.
DoubleValuegetRightMargin()
void
           Specifies the distance between the right border of the text block and the text it contains. This value is independent of the scale of the drawing. If the drawing is scaled, the right margin remains the same.
ColorValuegetTextBkgnd()
void
           Specifies the text background color for a shape.
DoubleValuegetTextBkgndTrans()
void
           Specifies the transparency level for the background color of a shape's text block, from 0 (completely opaque) to 1 (completely transparent).
TextDirectiongetTextDirection()
void
           Specifies the direction of the characters in a text block.
DoubleValuegetTopMargin()
void
           Specifies the distance between the top border of the text block and the first line of text it contains.
VerticalAligngetVerticalAlign()
void
           Specifies the vertical alignment of text within the text block.
 
Method Summary
java.lang.ObjectdeepClone()
Creates deep copy of this instance.
 

    • Property Getters/Setters Detail

      • getDel/setDel

        public int getDel() / public void setDel(int value)
        
        A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.
      • getLeftMargin/setLeftMargin

        public DoubleValue getLeftMargin() / public void setLeftMargin(DoubleValue value)
        
        Specifies the distance between the left border of the text block and the text it contains. This value is independent of the scale of the drawing. If the drawing is scaled, the left margin remains the same.
      • getRightMargin/setRightMargin

        public DoubleValue getRightMargin() / public void setRightMargin(DoubleValue value)
        
        Specifies the distance between the right border of the text block and the text it contains. This value is independent of the scale of the drawing. If the drawing is scaled, the right margin remains the same.
      • getTopMargin/setTopMargin

        public DoubleValue getTopMargin() / public void setTopMargin(DoubleValue value)
        
        Specifies the distance between the top border of the text block and the first line of text it contains.
      • getBottomMargin/setBottomMargin

        public DoubleValue getBottomMargin() / public void setBottomMargin(DoubleValue value)
        
        Determines the distance between the bottom border of the text block and the last line of text it contains. The default is 4 pt. This value is independent of the scale of the drawing. If the drawing is scaled, the bottom margin remains the same.
      • getVerticalAlign/setVerticalAlign

        public VerticalAlign getVerticalAlign() / public void setVerticalAlign(VerticalAlign value)
        
        Specifies the vertical alignment of text within the text block.
      • getTextBkgnd/setTextBkgnd

        public ColorValue getTextBkgnd() / public void setTextBkgnd(ColorValue value)
        
        Specifies the text background color for a shape.
      • getDefaultTabStop/setDefaultTabStop

        public DoubleValue getDefaultTabStop() / public void setDefaultTabStop(DoubleValue value)
        
        Specifies the interval of the default tab stops in a text block.
      • getTextDirection/setTextDirection

        public TextDirection getTextDirection() / public void setTextDirection(TextDirection value)
        
        Specifies the direction of the characters in a text block.
      • getTextBkgndTrans/setTextBkgndTrans

        public DoubleValue getTextBkgndTrans() / public void setTextBkgndTrans(DoubleValue value)
        
        Specifies the transparency level for the background color of a shape's text block, from 0 (completely opaque) to 1 (completely transparent).
    • Method Detail

      • deepClone

        public java.lang.Object deepClone()
                        throws java.lang.Exception
        Creates deep copy of this instance.
        Returns: