DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomLabel Class / Adjust Method
Which corner of the label to adjust
The distance to move that corner
The viewer in which the image is displayed
The index of the image, on which the label is displayed, within the viewer






In This Topic
    Adjust Method
    In This Topic
    Move or resize a label defined offset where the offset is defined in screen pixel units
    Syntax
    'Declaration
     
    
    Public Sub Adjust( _
       ByVal Where As System.Drawing.ContentAlignment, _
       ByVal Offset As System.Drawing.SizeF, _
       ByVal Viewer As DicomViewer, _
       ByVal Index As System.Integer _
    ) 
    'Usage
     
    
    Dim instance As DicomLabel
    Dim Where As System.Drawing.ContentAlignment
    Dim Offset As System.Drawing.SizeF
    Dim Viewer As DicomViewer
    Dim Index As System.Integer
     
    instance.Adjust(Where, Offset, Viewer, Index)
    public void Adjust( 
       System.Drawing.ContentAlignment Where,
       System.Drawing.SizeF Offset,
       DicomViewer Viewer,
       System.int Index
    )
    public procedure Adjust( 
        Where: System.Drawing.ContentAlignment;
        Offset: System.Drawing.SizeF;
        Viewer: DicomViewer;
        Index: System.Integer
    ); 
    public function Adjust( 
       Where : System.Drawing.ContentAlignment,
       Offset : System.Drawing.SizeF,
       Viewer : DicomViewer,
       Index : System.int
    );
    public: void Adjust( 
       System.Drawing.ContentAlignment Where,
       System.Drawing.SizeF Offset,
       DicomViewer* Viewer,
       System.int Index
    ) 
    public:
    void Adjust( 
       System.Drawing.ContentAlignment Where,
       System.Drawing.SizeF Offset,
       DicomViewer^ Viewer,
       System.int Index
    ) 

    Parameters

    Where
    Which corner of the label to adjust
    Offset
    The distance to move that corner
    Viewer
    The viewer in which the image is displayed
    Index
    The index of the image, on which the label is displayed, within the viewer
    Remarks
    This method is typically used to provide a means to "edit" labels by adjusting their corners. If Where is System.Drawing.ContentAlignment.MiddleCenter then the label is moved with no re-sizing.
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also