◆ add()
| boolean com.foxit.sdk.pdf.objects.PDFDictionaryArray.add |
( |
PDFDictionary |
newElement | ) |
|
在尾部添加元素。可能会增长数组。
- 参数
-
- 返回
- true 表示成功,false 表示失败(如内存错误)。
◆ delete()
| synchronized void com.foxit.sdk.pdf.objects.PDFDictionaryArray.delete |
( |
| ) |
|
直接清除C++相关资源。
- 返回
- 无。
- 注解
- 一旦这个接口被调用,这个对象将不能再被使用。
◆ find()
| int com.foxit.sdk.pdf.objects.PDFDictionaryArray.find |
( |
PDFDictionary |
data, |
|
|
int |
iStart |
|
) |
| |
从指定位置到最后查找元素。
- 参数
-
| [in] | data | 输入的元素。 |
| [in] | iStart | 指定开始查找的起始元素的基于零的索引。 |
- 返回
- 找到的元素的索引。-1表示未找到。
◆ getAt()
| PDFDictionary com.foxit.sdk.pdf.objects.PDFDictionaryArray.getAt |
( |
int |
nIndex | ) |
|
◆ getSize()
| int com.foxit.sdk.pdf.objects.PDFDictionaryArray.getSize |
( |
| ) |
|
◆ getUpperBound()
| int com.foxit.sdk.pdf.objects.PDFDictionaryArray.getUpperBound |
( |
| ) |
|
获取数组中的上界,实际上是最大有效索引。
- 返回
- 上界。
◆ removeAll()
| void com.foxit.sdk.pdf.objects.PDFDictionaryArray.removeAll |
( |
| ) |
|
◆ removeAt()
| boolean com.foxit.sdk.pdf.objects.PDFDictionaryArray.removeAt |
( |
int |
nIndex, |
|
|
int |
nCount |
|
) |
| |
在指定位置移除若干元素。
- 参数
-
| [in] | nIndex | 指定数组中的基于零的索引。 |
| [in] | nCount | 指定要移除的元素数量。 |
- 返回
- true 表示成功,false 表示失败(如参数或内存错误)。
◆ setAt()
| boolean com.foxit.sdk.pdf.objects.PDFDictionaryArray.setAt |
( |
int |
nIndex, |
|
|
PDFDictionary |
newElement |
|
) |
| |
此方法覆盖由索引号指定的元素。
- 参数
-
| [in] | nIndex | 指定元素的基于零的索引。 |
| [in] | newElement | 元素。 |
- 返回
- true 表示成功,false 表示失败。
◆ setAtGrow()
| boolean com.foxit.sdk.pdf.objects.PDFDictionaryArray.setAtGrow |
( |
int |
nIndex, |
|
|
PDFDictionary |
newElement |
|
) |
| |
在指定位置设置元素值。可能会增长数组。
- 参数
-
| [in] | nIndex | 指定数组中元素的基于零的索引。 |
| [in] | newElement | 输入的元素。 |
- 返回
- true 表示成功,false 表示失败。
◆ setSize()
| boolean com.foxit.sdk.pdf.objects.PDFDictionaryArray.setSize |
( |
int |
nNewSize, |
|
|
int |
nGrowBy |
|
) |
| |
更改分配的大小和增长量。
- 参数
-
| [in] | nNewSize | 期望的新大小(以元素为单位)。 |
| [in] | nGrowBy | 期望的增长量(以元素为单位)。这可以为-1表示增长量不变。 |
- 返回
- true 表示成功,false 表示失败(如参数或内存错误)。