DicomObjects Reference
DicomObjects Reference / DicomLabel Object / Top Property
In This Topic
    Top Property
    In This Topic
    Description
    Defines position of an annotation
    Property type
    Read-write property
    Syntax
    Visual Basic
    Public Property Top As Single
    Remarks

    Each label object is drawn within a rectangle, of size Width x Height, with its top-left corner defined by Top and Left.
    Measurement units are pixels, but there are several variations:

    • If displayed as part of a DicomViewer’s Labels collection, then the origin is the top-left corner of the viewer control, and no scaling occurs.
    • If ScaleWithCell is true, and if displayed as part of a DicomImage’s Labels collection, then the coordinates are scaled such that 0 represents the left/top edges of the cell within which the images is displayed, and 1000 represents the bottom/right edges.  This setting is particularly appropriate for demographic text labels.
    • If RotateModeWithImage is not set, and if displayed as part of a DicomImage’s Labels collection, then the pixels are display pixels, and the origin is the top-left corner of the part of the control within which the image is displayed.  i.e. if an image is zoomed or scrolled, then the object stays fixed on the screen.
    • If ImageTied is true, and if displayed as part of a DicomImage’s Labels collection, then the pixels are image pixels, and the origin is the top-left corner of the image.  i.e. if an image is zoomed or scrolled, then the object moves with the image.

    If Height or Width are zero for text labels, then the lower-right is set to the lower-right corner of the display area or image as appropriate. 

    Lines are drawn from the top left to the “bottom-right” as defined above, but as Weight and Width may be negative or zero, any line is possible.

    These properties are not used for PolyLine and Polygon types.

    See Also