OutlineCollection

遗产: java.lang.Object, com.aspose.pdf.Outlines

public final class OutlineCollection extends Outlines

表示文档大纲层次结构。

方法

方法描述
add(OutlineItemCollection outline)将大纲项添加到集合中。
clear()清除集合中的所有项目。
contains(OutlineItemCollection item)尚不支持。
copyTo(OutlineItemCollection[] array, int index)将大纲项复制到 System.Array,从特定的 System.Array 索引开始。
delete()从文档大纲中删除所有大纲项。
delete(String name)从文档大纲中删除具有指定标题的大纲项。
equals(Object arg0)
getClass()
getFirst()获取表示大纲中第一个顶级项的大纲项。
getLast()获取表示大纲中最后一个顶级项目的大纲项目。
getSyncRoot()获取可用于同步对此集合的访问的对象。
getVisibleCount()计数是各级可见的后代大纲项数的总和。
get_Item(int index)按索引从集合中获取大纲项。
hasNext()
hashCode()
isReadOnly()获取一个值,该值指示集合是否为只读。
isSynchronized()获取一个值,该值指示对此集合的访问是否同步(线程安全)。
iterator()返回循环访问集合的枚举器。
iterator_Rename_Namesake()
next()
notify()
notifyAll()
remove(OutlineItemCollection item)尚不支持。
remove(int index)按索引删除项目。
size()获取文档大纲所有级别的大纲项(书签)总数。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

add(OutlineItemCollection outline)

public void add(OutlineItemCollection outline)

将大纲项添加到集合中。

参数:

范围类型描述
outlineOutlineItemCollection要添加的大纲项目。

clear()

public void clear()

清除集合中的所有项目。

contains(OutlineItemCollection item)

public boolean contains(OutlineItemCollection item)

尚不支持。

检查集合是否包含给定的项目。

参数:

范围类型描述
itemOutlineItemCollection要在集合中定位的对象

退货: boolean - 布尔值 True - 如果找到项目;否则,假的。

copyTo(OutlineItemCollection[] array, int index)

public void copyTo(OutlineItemCollection[] array, int index)

将大纲项复制到 System.Array,从特定的 System.Array 索引开始。

参数:

范围类型描述
arrayOutlineItemCollection[]作为目标的一维 System.Array。必须具有从零开始的索引。
indexintarray 中从零开始的索引,复制从这里开始。

delete()

public void delete()

从文档大纲中删除所有大纲项。

delete(String name)

public void delete(String name)

从文档大纲中删除具有指定标题的大纲项。

参数:

范围类型描述
namejava.lang.String要删除的大纲项目的标题

equals(Object arg0)

public boolean equals(Object arg0)

参数:

范围类型描述
arg0java.lang.Object

退货: 布尔值

getClass()

public final native Class<?> getClass()

退货: java.lang.Class

getFirst()

public OutlineItemCollection getFirst()

获取表示大纲中第一个顶级项的大纲项。

退货: OutlineItemCollection OutlineItemCollection 对象

getLast()

public OutlineItemCollection getLast()

获取表示大纲中最后一个顶级项目的大纲项目。

退货: OutlineItemCollection OutlineItemCollection 对象

getSyncRoot()

public Object getSyncRoot()

获取可用于同步对此集合的访问的对象。

退货: java.lang.Object - 同步对象

getVisibleCount()

public int getVisibleCount()

计数是各级可见的后代大纲项数的总和。注意:请不要与 Count 混淆,Count 是集合中的项目数。

退货: 整数

get_Item(int index)

public OutlineItemCollection get_Item(int index)

按索引从集合中获取大纲项。

参数:

范围类型描述
indexint请求项的索引。

退货: OutlineItemCollection OutlineItemCollection 对象

hasNext()

public boolean hasNext()

退货: 布尔值

hashCode()

public native int hashCode()

退货: 整数

isReadOnly()

public boolean isReadOnly()

获取一个值,该值指示集合是否为只读。

退货: boolean - 布尔值

isSynchronized()

public boolean isSynchronized()

获取一个值,该值指示对此集合的访问是否同步(线程安全)。

退货: boolean - 布尔值

iterator()

public Iterator<OutlineItemCollection> iterator()

返回循环访问集合的枚举器。

退货: java.util.Iterator<com.aspose.pdf.OutlineItemCollection> - 一个 System.Collections.IEnumerator 对象,可用于遍历集合。

iterator_Rename_Namesake()

public final System.Collections.IEnumerator iterator_Rename_Namesake()

退货: com.aspose.ms.System.Collections.IEnumerator

next()

public OutlineItemCollection next()

退货: OutlineItemCollection

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

remove(OutlineItemCollection item)

public boolean remove(OutlineItemCollection item)

尚不支持。

总是抛出异常

参数:

范围类型描述
itemOutlineItemCollection要在集合中定位的对象

退货: boolean - 布尔值 True - 如果项目被移除;否则,假的。

remove(int index)

public final void remove(int index)

按索引删除项目。

参数:

范围类型描述
indexint要删除的项目的索引。

size()

public int size()

获取文档大纲所有级别的大纲项(书签)总数。

退货: int - 整数值

toString()

public String toString()

退货: java.lang.字符串

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

参数:

范围类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

参数:

范围类型描述
arg0long
arg1int