com.aspose.cells

Class TextParagraph

  • java.lang.Object
public class TextParagraph 
extends FontSetting

Represents the text paragraph setting.

Property Getters/Setters Summary
intgetAlignmentType()
void
           Gets and sets the text horizontal alignment type of the paragraph. The value of the property is TextAlignmentType integer constant.
BulletgetBullet()
Gets the bullet.
com.aspose.cells.FontSetting[]getChildren()
Gets all text runs in this paragraph. If this paragraph is empty, return paragraph itself.
doublegetDefaultTabSize()
void
setDefaultTabSize(doublevalue)
           Gets and sets the default size for a tab character within this paragraph.
doublegetFirstLineIndent()
void
setFirstLineIndent(doublevalue)
           Specifies the indent size that will be applied to the first line of text in the paragraph.
FontgetFont()
Returns the font of this object.
intgetFontAlignType()
void
           Determines where vertically on a line of text the actual words are positioned. This deals with vertical placement of the characters with respect to the baselines. The value of the property is TextFontAlignType integer constant.
booleanisEastAsianLineBreak()
void
setEastAsianLineBreak(booleanvalue)
           Specifies whether an East Asian word can be broken in half and wrapped onto the next line without a hyphen being added.
booleanisHangingPunctuation()
void
setHangingPunctuation(booleanvalue)
           Specifies whether punctuation is to be forcefully laid out on a line of text or put on a different line of text.
booleanisLatinLineBreak()
void
setLatinLineBreak(booleanvalue)
           Specifies whether a Latin word can be broken in half and wrapped onto the next line without a hyphen being added.
doublegetLeftMargin()
void
setLeftMargin(doublevalue)
           pecifies the left margin of the paragraph.
intgetLength()
Gets the length of the characters.
doublegetLineSpace()
void
setLineSpace(doublevalue)
           Gets and sets the amount of vertical white space that will be used within a paragraph.
intgetLineSpaceSizeType()
void
           Gets and sets the amount of vertical white space that will be used within a paragraph. The value of the property is LineSpaceSizeType integer constant.
doublegetRightMargin()
void
setRightMargin(doublevalue)
           pecifies the right margin of the paragraph.
doublegetSpaceAfter()
void
setSpaceAfter(doublevalue)
           Gets and sets the amount of vertical white space that will be present after a paragraph.
intgetSpaceAfterSizeType()
void
           Gets and sets the amount of vertical white space that will be present after a paragraph. The value of the property is LineSpaceSizeType integer constant.
doublegetSpaceBefore()
void
setSpaceBefore(doublevalue)
           Gets and sets the amount of vertical white space that will be present before a paragraph.
intgetSpaceBeforeSizeType()
void
           Gets and sets the amount of vertical white space that will be present before a paragraph. The value of the property is LineSpaceSizeType integer constant.
intgetStartIndex()
Gets the start index of the characters.
TextTabStopCollectiongetStops()
Gets tab stop list.
TextOptionsgetTextOptions()
Returns the text options.
intgetType()
Gets the type of text node. The value of the property is TextNodeType integer constant.
 
Method Summary
voidsetWordArtStyle(int style)
Sets the preset WortArt style.
 

    • Property Getters/Setters Detail

      • getBullet

        public Bullet getBullet()
        
        Gets the bullet.
      • getType

        public int getType()
        
        Gets the type of text node. The value of the property is TextNodeType integer constant.
      • getLineSpaceSizeType/setLineSpaceSizeType

        public int getLineSpaceSizeType() / public void setLineSpaceSizeType(int value)
        
        Gets and sets the amount of vertical white space that will be used within a paragraph. The value of the property is LineSpaceSizeType integer constant.
      • getLineSpace/setLineSpace

        public double getLineSpace() / public void setLineSpace(double value)
        
        Gets and sets the amount of vertical white space that will be used within a paragraph.
      • getSpaceAfterSizeType/setSpaceAfterSizeType

        public int getSpaceAfterSizeType() / public void setSpaceAfterSizeType(int value)
        
        Gets and sets the amount of vertical white space that will be present after a paragraph. The value of the property is LineSpaceSizeType integer constant.
      • getSpaceAfter/setSpaceAfter

        public double getSpaceAfter() / public void setSpaceAfter(double value)
        
        Gets and sets the amount of vertical white space that will be present after a paragraph.
      • getSpaceBeforeSizeType/setSpaceBeforeSizeType

        public int getSpaceBeforeSizeType() / public void setSpaceBeforeSizeType(int value)
        
        Gets and sets the amount of vertical white space that will be present before a paragraph. The value of the property is LineSpaceSizeType integer constant.
      • getSpaceBefore/setSpaceBefore

        public double getSpaceBefore() / public void setSpaceBefore(double value)
        
        Gets and sets the amount of vertical white space that will be present before a paragraph.
      • isLatinLineBreak/setLatinLineBreak

        public boolean isLatinLineBreak() / public void setLatinLineBreak(boolean value)
        
        Specifies whether a Latin word can be broken in half and wrapped onto the next line without a hyphen being added.
      • isEastAsianLineBreak/setEastAsianLineBreak

        public boolean isEastAsianLineBreak() / public void setEastAsianLineBreak(boolean value)
        
        Specifies whether an East Asian word can be broken in half and wrapped onto the next line without a hyphen being added.
      • isHangingPunctuation/setHangingPunctuation

        public boolean isHangingPunctuation() / public void setHangingPunctuation(boolean value)
        
        Specifies whether punctuation is to be forcefully laid out on a line of text or put on a different line of text.
      • getRightMargin/setRightMargin

        public double getRightMargin() / public void setRightMargin(double value)
        
        pecifies the right margin of the paragraph.
      • getLeftMargin/setLeftMargin

        public double getLeftMargin() / public void setLeftMargin(double value)
        
        pecifies the left margin of the paragraph.
      • getFirstLineIndent/setFirstLineIndent

        public double getFirstLineIndent() / public void setFirstLineIndent(double value)
        
        Specifies the indent size that will be applied to the first line of text in the paragraph.
      • getFontAlignType/setFontAlignType

        public int getFontAlignType() / public void setFontAlignType(int value)
        
        Determines where vertically on a line of text the actual words are positioned. This deals with vertical placement of the characters with respect to the baselines. The value of the property is TextFontAlignType integer constant.
      • getAlignmentType/setAlignmentType

        public int getAlignmentType() / public void setAlignmentType(int value)
        
        Gets and sets the text horizontal alignment type of the paragraph. The value of the property is TextAlignmentType integer constant.
      • getDefaultTabSize/setDefaultTabSize

        public double getDefaultTabSize() / public void setDefaultTabSize(double value)
        
        Gets and sets the default size for a tab character within this paragraph.
      • getChildren

        public com.aspose.cells.FontSetting[] getChildren()
        
        Gets all text runs in this paragraph. If this paragraph is empty, return paragraph itself.
      • getStartIndex

        public int getStartIndex()
        
        Gets the start index of the characters.
      • getLength

        public int getLength()
        
        Gets the length of the characters.
      • getFont

        public Font getFont()
        
        Returns the font of this object.
      • getTextOptions

        public TextOptions getTextOptions()
        
        Returns the text options.

    setLineSpaceSizeType

    public voidsetLineSpaceSizeType(intvalue)
    
    Gets and sets the amount of vertical white space that will be used within a paragraph. The value of the property is LineSpaceSizeType integer constant.

    setLineSpace

    public voidsetLineSpace(doublevalue)
    
    Gets and sets the amount of vertical white space that will be used within a paragraph.

    setSpaceAfterSizeType

    public voidsetSpaceAfterSizeType(intvalue)
    
    Gets and sets the amount of vertical white space that will be present after a paragraph. The value of the property is LineSpaceSizeType integer constant.

    setSpaceAfter

    public voidsetSpaceAfter(doublevalue)
    
    Gets and sets the amount of vertical white space that will be present after a paragraph.

    setSpaceBeforeSizeType

    public voidsetSpaceBeforeSizeType(intvalue)
    
    Gets and sets the amount of vertical white space that will be present before a paragraph. The value of the property is LineSpaceSizeType integer constant.

    setSpaceBefore

    public voidsetSpaceBefore(doublevalue)
    
    Gets and sets the amount of vertical white space that will be present before a paragraph.

    setLatinLineBreak

    public voidsetLatinLineBreak(booleanvalue)
    
    Specifies whether a Latin word can be broken in half and wrapped onto the next line without a hyphen being added.

    setEastAsianLineBreak

    public voidsetEastAsianLineBreak(booleanvalue)
    
    Specifies whether an East Asian word can be broken in half and wrapped onto the next line without a hyphen being added.

    setHangingPunctuation

    public voidsetHangingPunctuation(booleanvalue)
    
    Specifies whether punctuation is to be forcefully laid out on a line of text or put on a different line of text.

    setRightMargin

    public voidsetRightMargin(doublevalue)
    
    pecifies the right margin of the paragraph.

    setLeftMargin

    public voidsetLeftMargin(doublevalue)
    
    pecifies the left margin of the paragraph.

    setFirstLineIndent

    public voidsetFirstLineIndent(doublevalue)
    
    Specifies the indent size that will be applied to the first line of text in the paragraph.

    setFontAlignType

    public voidsetFontAlignType(intvalue)
    
    Determines where vertically on a line of text the actual words are positioned. This deals with vertical placement of the characters with respect to the baselines. The value of the property is TextFontAlignType integer constant.

    setAlignmentType

    public voidsetAlignmentType(intvalue)
    
    Gets and sets the text horizontal alignment type of the paragraph. The value of the property is TextAlignmentType integer constant.

    setDefaultTabSize

    public voidsetDefaultTabSize(doublevalue)
    
    Gets and sets the default size for a tab character within this paragraph.
    • Method Detail

      • setWordArtStyle

        public void setWordArtStyle(int style)
                            throws java.lang.Exception
        Sets the preset WortArt style. Only for the text of shape/chart.
        Parameters:
        style - A PresetWordArtStyle value. The preset WortArt style.