Void NearestX( XCoordinate x ) | 选择最接近通过点 (x, 0) 的垂直线的假设。示例: 下面的代码指定所需元素在水平方向上最接近 ElementName 元素的右边界。NearestX: ElementName.Right.Start; |
Void NearestY( YCoordinate y ) | 选择最接近通过点 (0, y) 的水平线的假设。示例: 下面的代码指定所需元素在垂直方向上最接近 ElementName 元素的上边界。NearestY: ElementName.Top.Start; |
Void Nearest( XInterval x, YInterval y ) | 选择最接近矩形 Rect(x.Start, y.Start, x.End, y.End) 的假设。示例: 下面的代码指定所需元素最接近 ElementName 元素的中心。Nearest: ElementName.XCenter, ElementName.YCenter; 下面的代码指定所需元素最接近页面的中心。Nearest: Page(1).RectGlobal.XCenter, Page(1).RectGlobal.YCenter; |
Void Nearest( PageEdge ) | 在文档的每一页上,选择最接近某个页面边缘(上、下、右或左)的假设。注意: 如果有多个假设与指定边缘的距离相同,可能会选择多个假设。示例: 若要指定当前元素最接近页面底边,请编写:Nearest: PageBottom; |
Void Nearest( Hypothesis hyp ) | 选择最接近模糊矩形 hyp.Rect 的假设。示例: 下面的代码指定所需元素最接近 ElementName 元素。Nearest: ElementName; |
Void Nearest( HypothesisInstances ) | 选择最接近指定 Repeating Group 元素之假设集合的假设。 |