此类表示索引范围。在这里,范围由一个或多个段组成,每个段由 单个索引或一组连续索引组成。
对于某些特殊情况,例如在 pdf::HeaderFooter 中使用的,此范围中指定的索引值直接表示页码而不是页面索引。
- 参见
- pdf::HeaderFooter
◆ Filter
范围过滤器枚举。
此枚举的值应单独使用。
| 枚举值 |
|---|
| e_All | 范围内的所有索引都将被使用。
|
| e_Even | 只使用范围内的偶数(丢弃奇数)。
|
| e_Odd | 只使用范围内的奇数(丢弃偶数)。
|
◆ Range() [1/3]
| foxit.common.Range.Range |
( |
int |
index | ) |
|
|
inline |
◆ Range() [2/3]
| foxit.common.Range.Range |
( |
int |
start_index, |
|
|
int |
end_index, |
|
|
Range.Filter |
filter |
|
) |
| |
|
inline |
◆ Range() [3/3]
| foxit.common.Range.Range |
( |
Range |
other | ) |
|
|
inline |
◆ AddSegment()
| void foxit.common.Range.AddSegment |
( |
int |
start_index, |
|
|
int |
end_index, |
|
|
Range.Filter |
filter |
|
) |
| |
|
inline |
添加新的范围段。(反向排序是合法的。)
- 参数
-
- 返回
- 无。
◆ AddSingle()
| void foxit.common.Range.AddSingle |
( |
int |
index | ) |
|
|
inline |
◆ GetSegmentCount()
| int foxit.common.Range.GetSegmentCount |
( |
| ) |
|
|
inline |
◆ GetSegmentEnd()
| int foxit.common.Range.GetSegmentEnd |
( |
int |
segment_index | ) |
|
|
inline |
获取指定范围段的结束索引。
- 参数
-
- 返回
- 指定范围段的结束索引。
◆ GetSegmentStart()
| int foxit.common.Range.GetSegmentStart |
( |
int |
segment_index | ) |
|
|
inline |
获取指定范围段的起始索引。
- 参数
-
- 返回
- 指定范围段的起始索引。
◆ IsEmpty()
| bool foxit.common.Range.IsEmpty |
( |
| ) |
|
|
inline |
检查当前对象是否为空。
当当前对象为空时,意味着当前对象无用。
- 返回
- true 表示当前对象为空,false 表示不为空。
◆ RemoveAll()
| void foxit.common.Range.RemoveAll |
( |
| ) |
|
|
inline |