AnnGetNameOffsetY method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax long AnnGetNameOffsetY (OLE_HANDLE hObject);

Overview:  Refer to Moving the Name of an Annotation.

Remarks

(Document/Medical only) Gets 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:  AnnSetName method, AnnGetName method, AnnGetNameRestrict method, AnnSetNameRestrict method, AnnGetNameOffsetX method, AnnSetNameOffsetX method, AnnSetNameOffsetY method

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