DicomObjects.NET.V8
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 ContentAlignment, _
       ByVal Offset As SizeF, _
       ByVal Viewer As DicomViewer, _
       ByVal Index As Integer _
    ) 
    'Usage
     
    Dim instance As DicomLabel
    Dim Where As ContentAlignment
    Dim Offset As SizeF
    Dim Viewer As DicomViewer
    Dim Index As Integer
     
    instance.Adjust(Where, Offset, Viewer, Index)
    public void Adjust( 
       ContentAlignment Where,
       SizeF Offset,
       DicomViewer Viewer,
       int Index
    )
    public:
    void Adjust( 
       ContentAlignment Where,
       SizeF Offset,
       DicomViewer^ Viewer,
       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.0 or higher

    See Also