AnnNameBoundingRectWidth property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax float AnnNameBoundingRectWidth (OLE_HANDLE hObject);

Overview:  Refer to Moving the Name of an Annotation.

Remarks

(Read only) (Document/Medical only) Gets the width of the bounding rectangle of the name of the specified annotation object. This is the rectangle in which the object name is displayed. The unit of measure is determined by the ScaleMode property.

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:  AnnNameBoundingRectLeft property, AnnNameBoundingRectTop property, AnnNameBoundingRectHeight property, AnnNameRectLeft property, AnnNameRectTop property, AnnNameRectWidth property, AnnNameRectHeight property, AnnBoundingRectLeft property, AnnBoundingRectTop property, AnnBoundingRectWidth property, AnnBoundingRectHeight property, AnnRectLeft property, AnnRectTop property, AnnRectWidth property, AnnRectHeight property

Topics:  Annotations (Document/Medical only):Object Manipulation