了解参考点

BarTender 中的参考点可以帮助您:

Each object or control has a unique object reference point as well as a unique template reference point that are configured separately from those of other objects or controls. 为简单起见,以下会话中会使用模板和对象来描述参考点,但所有信息仍然与数据输入表单和控件相关。

在以下图像中,红色的框指示参考点选项并且仅用于视觉辅助。 这些框不会出现在实际的模板或对象中。

以下是可用的参考点:

Closed模板参考点

模板参考点是 BarTender 用于放置对象的设计区域中的 9 个参考点中的任意一个参考点。 您可以通过“高级位置设置”对话框来为对象选择模板参考点。 然后,该对象会放置到与模板参考点相关的模板上。 在以下图像中,可用的模板参考点选项显示为红框。 “左上”是默认选项。

如果模板为椭圆形或具有圆角,则上述 9 个可能的参考点将位于一个不可见矩形的中心和周边,该矩形的各个边会与模板的最高点、最低点、最右侧点和最左侧点相交。

Closed对象参考点

对象参考点是在对象中 BarTender 用于放置对象的 9 个参考点中的任意一个,其与模板参考点相关联。 The object reference point is configured on the object's Position property page. 在以下图像中,可用的对象参考点选项显示为红框。 “左上”是默认选项。

条形码对象的参考点不包含用户可读区域。

如果对象为椭圆形并具有圆角,或其形状不是矩形,则上述 9 个可能的参考点将位于一个不可见矩形的中心和周边,该矩形的各个边将与对象的最高点、最低点、最右侧点和最左侧点相交。

If you use Snap to Object or Ruler to assist you in moving objects on your template, the object's reference point might be reset. 有关更多信息,请参见对象对齐

使用参考点放置对象

As previously noted, BarTender uses an object's reference point to place the object relative to its template reference point. How these two reference points position the object is determined by the object's X-coordinate and Y-coordinate, as configured on the object's Position property page. X 轴坐标为对象参考点与模板参考点右侧或左侧之间的距离。 Y 轴坐标为对象参考点与模板参考点上侧或下侧之间的距离。

支持负值的 X 轴和 Y 轴坐标。 有关负值对相对于模板参考点的对象位置的影响的更多信息,请参见位置属性页。

When you update reference points, BarTender automatically updates the X-coordinate and Y-coordinate to values that reflect the object's current position rather than moving the object based on the new reference point.

示例:

以下图像显示 1 x 2 英寸模板。 对象的模板参考点位于“左上”,对象的参考点位于“左上”。 The object's X-coordinate and Y-coordinate are each set to 0.5 inches. 根据以上设置,对象的参考点会放置于模板参考点(模板的左上方边缘)向下 1/2 英寸、向右 1/2 英寸的位置。

以下图像显示对象放置于距离模板左上方边缘 1/4 英寸的位置。 Although there are several ways this can be achieved, either of the following methods would place the object in the desired location:

线条对象的对象参考点将始终是线条的中心点。 Also, you are not required to specify the position of a line in terms of the X-coordinate and Y-coordinate of the object reference point relative to the template reference point. You have the option of using the X-coordinate and Y-coordinate of one or the other end point of the line (relative to the template reference point).