DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomViewer Class / ImageIndex Method

The point location of interest in the control.


In This Topic
    ImageIndex Method
    In This Topic
    Identifies the image and pixel positions within it displayed at a particular location in the control
    Syntax
    'Declaration
     
    
    Public Overridable Function ImageIndex( _
       ByVal p As System.Drawing.Point _
    ) As System.Integer
    public virtual System.int ImageIndex( 
       System.Drawing.Point p
    )

    Parameters

    p

    The point location of interest in the control.

    Return Value

    Index of the Image within the Viewer's Images collection

    Remarks

    If the point identified corresponds with an image cell, ImageIndex returns the index to that image within the viewer's images collection.

    If the point is not within an image cell, all methods return -1.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also