Leadtools.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
BeginUpdate Method
See Also 
Leadtools.WinForms Namespace > RasterImageViewer Class : BeginUpdate Method



Prevents the control from re-painting until the EndUpdate method is called.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub BeginUpdate() 
Visual Basic (Usage)Copy Code
Dim instance As RasterImageViewer
 
instance.BeginUpdate()
C# 
public virtual void BeginUpdate()
C++/CLI 
public:
virtual void BeginUpdate(); 

Example

This example will load a new image, zooms it back to 100% and set the size mode to Fit.

Remarks

This method prevents the control from painting until the EndUpdate method is called.

If you want to make changes to this RasterImageViewer that require multiple paints, it is best to maintain performance by surrounding your code with BeginUpdate%M:Leadtools.WinForms.RasterImageViewer.EndUpdate% calls.

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also