com.aspose.cells
Class FontSettingCollection

java.lang.Object
  extended by CollectionBase
      extended by com.aspose.cells.FontSettingCollection
All Implemented Interfaces:
java.lang.Iterable

public class FontSettingCollection 
extends CollectionBase

Represents the list of FontSetting.


Property Getters/Setters Summary
intgetCount()→ inherited from com.aspose.cells.CollectionBase
          
java.lang.StringgetHtmlString()
voidsetHtmlString(java.lang.String value)
           Gets and sets the html string which contains data and some formats in this shape.
java.lang.StringgetText()
voidsetText(java.lang.String value)
           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)→ inherited from com.aspose.cells.CollectionBase
          Reserved for internal use.
voidappendText(java.lang.String text)
           Appends the text.
voidclear()
           Clear all setting.
booleancontains(java.lang.Object value)→ inherited from com.aspose.cells.CollectionBase
          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)→ inherited from com.aspose.cells.CollectionBase
          Reserved for internal use.
voidinsertText(int index, java.lang.String text)
           Insert index at the position.
java.util.Iteratoriterator()→ inherited from com.aspose.cells.CollectionBase
          
voidremoveAt(int index)→ inherited from com.aspose.cells.CollectionBase
          
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.

getTextParagraphs

public TextParagraphCollection getTextParagraphs()
Gets all paragraphs.

getText/setText

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

setText

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.

setHtmlString

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

getCount

→ inherited from com.aspose.cells.CollectionBase
public int getCount()

get

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

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

→ inherited from com.aspose.cells.CollectionBase
public void removeAt(int index)

iterator

→ inherited from com.aspose.cells.CollectionBase
public java.util.Iterator iterator()

contains

→ inherited from com.aspose.cells.CollectionBase
public boolean contains(java.lang.Object value)
Reserved for internal use.

add

→ inherited from com.aspose.cells.CollectionBase
public int add(java.lang.Object value)
Reserved for internal use.

indexOf

→ inherited from com.aspose.cells.CollectionBase
public int indexOf(java.lang.Object value)
Reserved for internal use.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.