AnnSetNameOffsetX method (ILEADRasterAnnotation)
short AnnSetNameOffsetX(long hObject, long NameOffsetX, VARIANT_BOOL bSelected ); | |
Overview |
Refer to Moving the Name of an Annotation. |
Remarks
(Document/Medical only) Sets the X-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.
If the value of the AnnContainer property is passed as the hObject parameter, the method will modify all the annotations in the container depending on the value of bSelected parameter.
If the value of the AnnAutomation property is passed as the hObject parameter, the method will modify the default values used whenever an annotation is created.
See Also