AnnBoundingRectWidth property (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnBoundingRectWidth [L_HANDLE hObject]

Delphi Syntax

AnnBoundingRectWidth [hObject: L_HANDLE]: Integer

Overview

Refer to Implementing Annotations.

Remarks

(Read only) (Document/Medical only) Gets the width of the bounding rectangle of the specified annotation object. This is the rectangle in which the object is displayed.

The bounding rectangle is different from the defining rectangle as follows:

The defining rectangle intersects the outermost points that define the object. If a line is more than one pixel wide, its defining points are in the middle of the line. Refer to the AnnRectXXX properties.

The bounding rectangle accounts for line width and is used as the rectangle to be invalidated when displaying an object. If the line width is an even number, the bounding rectangle is enlarged slightly to allow for variations in how the center of the line is defined on different systems.

Half the width of an object's outer line is outside its defining rectangle, as shown in the following diagram: image\AnnOCX01.gif

See Also

Elements:

AnnRectHeight property, AnnBoundingRectHeight property, AnnRectLeft property, AnnBoundingRectLeft property, AnnRectTop property, AnnBoundingRectTop property, AnnRectWidth property

Topics:

Annotations (Document/Medical only): Object Manipulation