FontSettingCollection
Inheritance: java.lang.Object, com.aspose.cells.CollectionBase
public class FontSettingCollection extends CollectionBase
Represents the list of FontSetting.
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
o | java.lang.Object | The 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:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | The text. |
clear()
public void clear()
Clear all setting.
contains(Object o)
public boolean contains(Object o)
Return whether instance contains this object
Parameters:
Parameter | Type | Description |
---|---|---|
o | java.lang.Object | test object |
Returns: boolean - Whether instance contains this object
deleteText(int index, int count)
public void deleteText(int index, int count)
Delete some characters.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | The start index. |
count | int | The count of characters. |
equals(Object obj)
public boolean equals(Object obj)
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.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:
Parameter | Type | Description |
---|---|---|
startIndex | int | The start index. |
length | int | The length. |
font | Font | The font. |
flag | StyleFlag | The flags of the font. |
get(int index)
public FontSetting get(int index)
Gets the FontSetting by the index.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | The 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:
Parameter | Type | Description |
---|---|---|
o | java.lang.Object | Determines 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:
Parameter | Type | Description |
---|---|---|
index | int | The start index. |
text | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
index | int | The 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:
Parameter | Type | Description |
---|---|---|
index | int | The start index. |
count | int | The count of characters. |
text | java.lang.String | The text. |
replace(String oldValue, String newValue)
public void replace(String oldValue, String newValue)
Replace the text.
Parameters:
Parameter | Type | Description |
---|---|---|
oldValue | java.lang.String | The old text. |
newValue | java.lang.String | The new text. |
setHtmlString(String value)
public void setHtmlString(String value)
Sets the html string which contains data and some formats in this shape.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setText(String value)
public void setText(String value)
Sets the text of the shape.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setWordArtStyle(int style)
public void setWordArtStyle(int style)
Sets the preset WordArt style.
Parameters:
Parameter | Type | Description |
---|---|---|
style | int | PresetWordArtStyle. 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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |