AnnSetNameOffsetY method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetNameOffsetY (L_HANDLE hObject, int NameOffsetY, bool bSelected);

Delphi Syntax

Function AnnSetNameOffsetY (hObject: L_HANDLE; NameOffsetY: Integer; bSelected: Boolean): Integer;

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Sets the Y-coordinate of the name offset of the specified annotation object.

The name offset of an annotation object is an offset that is relative to the upper left corner of the bounding box of the annotation. The name offset coordinates are in pixels, where the image is viewed at 100%. The name offset can be changed by:

 

1.

Calling the AnnSetNameOffsetX or AnnSetNameOffsetY methods

2.

Right-clicking the object in design-mode, selecting Name Properties, setting the NameOffset using the text box, and clicking "Apply".

3.

Clicking on the object name in design-mode and dragging it to a new location

When an object is created in automation mode, the newly created object will have the same name restrictions that the automation object had. That is, if the name of the automation object is restricted, the name of the newly created object is restricted. If the name of the automation object was not restricted, then the name of the newly created object will not be restricted.

See Also

Elements:

AnnGetNameRestrict method, AnnSetNameRestrict method, AnnGetNameOffsetX method, AnnGetNameOffsetY method, AnnSetNameOffsetX method, AnnSetNameOffsetY method

Topics:

Annotations (Document/Medical only):Object Manipulation