共用方式為


BOUNDINGBOXRECT Function

Returns the coordinate of the specified edge of the shape's bounding box.

Version Information

Version Added: Visio 2010

Syntax

BOUNDINGBOXRECT(Index)

Parameters

Name

Required/Optional

Data Type

Description

Index

Required

Integer

The edge of the shape's bounding box for which to get the coordinate. See Remarks for possible values.

Return Value

Number

Remarks

Index can be one of the following values.

Item

Value

Left edge

0

Right edge

1

Top edge

2

Bottom edge

3

If the shape has a parent, the return value is in the coordinate system of that parent.