com.aspose.cells

Class FontSettingCollection

  • java.lang.Object
  • All Implemented Interfaces:
    java.lang.Iterable
    public class FontSettingCollection 
    extends CollectionBase

Represents the list of FontSetting.

Property Getters/Setters Summary
intgetCount()
java.lang.StringgetHtmlString()
void
setHtmlString(java.lang.Stringvalue)
           Gets and sets the html string which contains data and some formats in this shape.
java.lang.StringgetText()
void
setText(java.lang.Stringvalue)
           Gets and sets the text of the shape.
ShapeTextAlignmentgetTextAlignment()
Represents the alignment setting of the text body.
TextParagraphCollectiongetTextParagraphs()
Gets all paragraphs.
FontSettingget(int index)
Gets the FontSetting by the index.
 
Method Summary
intadd(java.lang.Object value)
Reserved for internal use.
voidappendText(java.lang.String text)
Appends the text.
voidclear()
Clear all setting.
booleancontains(java.lang.Object value)
Reserved for internal use.
voiddeleteText(int index, int count)
Delete some characters.
voidformat(int startIndex, int length, Font font, StyleFlag flag)
Format the text with font setting.
java.util.IteratorgetParagraphEnumerator()
Gets the enumerator of the paragraphs.
intindexOf(java.lang.Object value)
Reserved for internal use.
voidinsertText(int index, java.lang.String text)
Insert index at the position.
java.util.Iteratoriterator()
voidremoveAt(int index)
voidreplace(int index, int count, java.lang.String text)
Replace the text.
voidsetWordArtStyle(int style)
Sets the preset WordArt style.
 

    • Property Getters/Setters Detail

      • getTextAlignment

        public ShapeTextAlignment getTextAlignment()
        
        Represents the alignment setting of the text body.
      • getText/setText

        public java.lang.String getText() / public void setText(java.lang.String value)
        
        Gets and sets the text of the shape.
      • getHtmlString/setHtmlString

        public java.lang.String getHtmlString() / public void setHtmlString(java.lang.String value)
        
        Gets and sets the html string which contains data and some formats in this shape.
      • getCount

        public int getCount()
        
      • get

        public FontSetting get(int index)
        
        Gets the FontSetting by the index.
        Parameters:
        index - The index.
        Returns:

    setText

    public voidsetText(java.lang.Stringvalue)
    
    Gets and sets the text of the shape.

    setHtmlString

    public voidsetHtmlString(java.lang.Stringvalue)
    
    Gets and sets the html string which contains data and some formats in this shape.
    • Method Detail

      • setWordArtStyle

        public void setWordArtStyle(int style)
                            throws java.lang.Exception
        Sets the preset WordArt style.
        Parameters:
        style - A PresetWordArtStyle value. The preset WordArt style.
      • getParagraphEnumerator

        public java.util.Iterator getParagraphEnumerator()
        Gets the enumerator of the paragraphs.
        Returns:
      • appendText

        public void appendText(java.lang.String text)
                       throws java.lang.Exception
        Appends the text.
        Parameters:
        text - The text.
      • insertText

        public void insertText(int index, java.lang.String text)
                       throws java.lang.Exception
        Insert index at the position.
        Parameters:
        index - The start index.
        text - The text.
      • replace

        public void replace(int index, int count, java.lang.String text)
                    throws java.lang.Exception
        Replace the text.
        Parameters:
        index - The start index.
        count - The count of characters.
        text - The text.
      • deleteText

        public void deleteText(int index, int count)
        Delete some characters.
        Parameters:
        index - The start index.
        count - The count of characters.
      • format

        public void format(int startIndex, int length, Font font, StyleFlag flag)
                   throws java.lang.Exception
        Format the text with font setting.
        Parameters:
        startIndex - The start index.
        length - The length.
        font - The font.
        flag - The flags of the font.
      • clear

        public void clear()
        Clear all setting.
      • removeAt

        public void removeAt(int index)
      • iterator

        public java.util.Iterator iterator()
      • contains

        public boolean contains(java.lang.Object value)
        Reserved for internal use.
      • add

        public int add(java.lang.Object value)
        Reserved for internal use.
      • indexOf

        public int indexOf(java.lang.Object value)
        Reserved for internal use.