Package com.grapecity.documents.excel
Interface IStyleCollection
表示指定或活动工作簿中所有
IStyle对象的集合。-
Method Summary
Modifier and TypeMethodDescriptionboolean确定样式名是否包含在IStyleCollection中。get(int index) 返回集合中的IStyle对象。返回集合中的IStyle对象。intgetCount()返回集合中的对象数量。Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getCount
int getCount()返回集合中的对象数量。 -
get
返回集合中的IStyle对象。- Parameters:
name- 指定集合中元素的名字。
-
get
返回集合中的IStyle对象。- Parameters:
index- 指定集合中元素的索引。
-
contains
确定样式名是否包含在IStyleCollection中。- Parameters:
name- 样式名称。- Returns:
- 是否包含该样式名。
-
add
创建一个新的IStyle并将其添加到当前IWorkbook可用样式列表中。此方法在功能上等同于调用 add(String name, IRange baseOn),其中 baseOn 参数为 null。- Parameters:
name- 新的IStyle名称。
-
add
-
add
-