DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Scroll Property






In This Topic
    Scroll Property
    In This Topic
    Controls the positioning of an image display
    Syntax
    'Declaration
     
    
    Public Property Scroll As System.Drawing.PointF
    'Usage
     
    
    Dim instance As DicomImage
    Dim value As System.Drawing.PointF
     
    instance.Scroll = value
     
    value = instance.Scroll
    public System.Drawing.PointF Scroll {get; set;}
    public read-write property Scroll: System.Drawing.PointF; 
    public function get,set Scroll : System.Drawing.PointF
    public: __property System.Drawing.PointF get_Scroll();
    public: __property void set_Scroll( 
       System.Drawing.PointF value
    );
    public:
    property System.Drawing.PointF Scroll {
       System.Drawing.PointF get();
       void set (    System.Drawing.PointF value);
    }

    Property Value

    The offset to use for display
    Remarks

    Together with Zoom, this determines the display of an image, which is magnified by 'Zoom' and then displaced Scroll.X pixels to the left and Scroll.Y pixels up. Zoom and Scroll are ignored if the containing control's StretchMode property is true.

    In order to find the values used at any given time, even if StretchToFit is true, use the Matrix method to get the ActualScrollX, ActualScrollY and ActualZoom which are used in the COM version.

    This property is over-ridden if a PresentationState is applied.

    If the viewer in which the image is held has
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also