←Select platform

Invalidate(LeadRect) Method

Summary

Invalidates a portion of the entire surface of the control and causes the control to be redrawn.

Syntax
C#
C++/CLI
public virtual void Invalidate( 
   LeadRect rc 
) 
public:  
   virtual void Invalidate( 
      LeadRect^ rc 
   ) 

Parameters

rc

Invalidate rectangle in control coordinates. Pass a LeadRect or a rectangle with 0 width or height to invalidate

the entire surface of the control.

Remarks

Calling Invalidate will cause the viewer to re-render the content of the view and items. The value of rc will be used as the invalid rectangle used with ImageViewerRenderEventArgs and if it is not empty, only that portion of the viewer will updated.

To re-render a single item quickly, use InvalidateItem or InvalidateItemByIndex.

For more information, refer to Image Viewer Rendering.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.