DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomViewer Class / Refresh Method / Refresh(Boolean) Method
if true, then the method issues a sychronous Invoke to the main thread and therefore does not return until the redraw has completed.






In This Topic
    Refresh(Boolean) Method
    In This Topic
    Refresh the control with optional wait for return
    Syntax
    'Declaration
     
    
    Public Overloads Sub Refresh( _
       ByVal Synchronous As System.Boolean _
    ) 
    'Usage
     
    
    Dim instance As DicomViewer
    Dim Synchronous As System.Boolean
     
    instance.Refresh(Synchronous)
    public void Refresh( 
       System.bool Synchronous
    )
    public procedure Refresh( 
        Synchronous: System.Boolean
    ); 
    public function Refresh( 
       Synchronous : System.boolean
    );
    public: void Refresh( 
       System.bool Synchronous
    ) 
    public:
    void Refresh( 
       System.bool Synchronous
    ) 

    Parameters

    Synchronous
    if true, then the method issues a sychronous Invoke to the main thread and therefore does not return until the redraw has completed.
    Remarks

    If called from the main thread, then this is equiavalent to base.Refresh()

    If called synchronously fom another thread, then it waits for the redraw to complete, so be careful to avoid deadlocks

    If called asynchronously fom another thread, then it simply issues a redraw request

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also