FontSettingCollection

Inheritance: java.lang.Object, com.aspose.cells.CollectionBase

public class FontSettingCollection extends CollectionBase

Represents the list of FontSetting.

Methods

MethodDescription
add(Object o)Adds an item to the CollectionBase instance.
appendText(String text)Appends the text.
clear()Clear all setting.
contains(Object o)Return whether instance contains this object
deleteText(int index, int count)Delete some characters.
equals(Object obj)
format(int startIndex, int length, Font font, StyleFlag flag)Format the text with font setting.
get(int index)Gets the FontSetting by the index.
getClass()
getCount()Gets the number of elements contained in the CollectionBase instance.
getHtmlString()Gets the html string which contains data and some formats in this shape.
getParagraphEnumerator()Gets the enumerator of the paragraphs.
getText()Gets the text of the shape.
getTextAlignment()Represents the alignment setting of the text body.
getTextParagraphs()Gets all paragraphs.
hashCode()
indexOf(Object o)Determines the index of a specific item in the CollectionBase instance.
insertText(int index, String text)Insert index at the position.
iterator()Returns an enumerator that iterates through the CollectionBase instance.
notify()
notifyAll()
removeAt(int index)Removes the item at the specified index.
replace(int index, int count, String text)Replace the text.
replace(String oldValue, String newValue)Replace the text.
setHtmlString(String value)Sets the html string which contains data and some formats in this shape.
setText(String value)Sets the text of the shape.
setWordArtStyle(int style)Sets the preset WordArt style.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

add(Object o)

public int add(Object o)

Adds an item to the CollectionBase instance.

Parameters:

ParameterTypeDescription
ojava.lang.ObjectThe Object to add to the CollectionBase instance.

Returns: int - The position into which the new element was inserted.

appendText(String text)

public void appendText(String text)

Appends the text.

Parameters:

ParameterTypeDescription
textjava.lang.StringThe text.

clear()

public void clear()

Clear all setting.

contains(Object o)

public boolean contains(Object o)

Return whether instance contains this object

Parameters:

ParameterTypeDescription
ojava.lang.Objecttest object

Returns: boolean - Whether instance contains this object

deleteText(int index, int count)

public void deleteText(int index, int count)

Delete some characters.

Parameters:

ParameterTypeDescription
indexintThe start index.
countintThe count of characters.

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: boolean -

format(int startIndex, int length, Font font, StyleFlag flag)

public void format(int startIndex, int length, Font font, StyleFlag flag)

Format the text with font setting.

Parameters:

ParameterTypeDescription
startIndexintThe start index.
lengthintThe length.
fontFontThe font.
flagStyleFlagThe flags of the font.

get(int index)

public FontSetting get(int index)

Gets the FontSetting by the index.

Parameters:

ParameterTypeDescription
indexintThe index.

Returns: FontSetting -

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCount()

public int getCount()

Gets the number of elements contained in the CollectionBase instance.

Returns: int - The number of elements contained in the CollectionBase instance.

getHtmlString()

public String getHtmlString()

Gets the html string which contains data and some formats in this shape.

Returns: java.lang.String

getParagraphEnumerator()

public Iterator getParagraphEnumerator()

Gets the enumerator of the paragraphs.

Returns: java.util.Iterator -

getText()

public String getText()

Gets the text of the shape.

Returns: java.lang.String

getTextAlignment()

public ShapeTextAlignment getTextAlignment()

Represents the alignment setting of the text body.

Returns: ShapeTextAlignment

getTextParagraphs()

public TextParagraphCollection getTextParagraphs()

Gets all paragraphs.

Returns: TextParagraphCollection

hashCode()

public int hashCode()

Returns: int -

indexOf(Object o)

public int indexOf(Object o)

Determines the index of a specific item in the CollectionBase instance.

Parameters:

ParameterTypeDescription
ojava.lang.ObjectDetermines the index of a specific item in the CollectionBase instance.

Returns: int - The index of value if found in the list; otherwise, -1.

insertText(int index, String text)

public void insertText(int index, String text)

Insert index at the position.

Parameters:

ParameterTypeDescription
indexintThe start index.
textjava.lang.StringThe text.

iterator()

public Iterator iterator()

Returns an enumerator that iterates through the CollectionBase instance.

Returns: java.util.Iterator - An iterator for the CollectionBase instance.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeAt(int index)

public void removeAt(int index)

Removes the item at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the item to remove.

replace(int index, int count, String text)

public void replace(int index, int count, String text)

Replace the text.

Parameters:

ParameterTypeDescription
indexintThe start index.
countintThe count of characters.
textjava.lang.StringThe text.

replace(String oldValue, String newValue)

public void replace(String oldValue, String newValue)

Replace the text.

Parameters:

ParameterTypeDescription
oldValuejava.lang.StringThe old text.
newValuejava.lang.StringThe new text.

setHtmlString(String value)

public void setHtmlString(String value)

Sets the html string which contains data and some formats in this shape.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setText(String value)

public void setText(String value)

Sets the text of the shape.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setWordArtStyle(int style)

public void setWordArtStyle(int style)

Sets the preset WordArt style.

Parameters:

ParameterTypeDescription
styleintPresetWordArtStyle. The preset WordArt style.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int