Leadtools.Windows.Controls Namespace > ImageViewer Class : BeginUpdate Method |
public virtual void BeginUpdate()
'Declaration Public Overridable Sub BeginUpdate()
'Usage Dim instance As ImageViewer instance.BeginUpdate()
public virtual void BeginUpdate()
function Leadtools.Windows.Controls.ImageViewer.BeginUpdate()
public: virtual void BeginUpdate();
The BeginUpdate method will cause the control not to call the System.Windows.UIElement.InvalidateMeasure method when any changes to the control properties or the image is applied. When the user calls the EndUpdate method, the viewer will call System.Windows.UIElement.InvalidateMeasure to show all the changes made. This is useful for better visual results and for speed efficiency.
Calls to BeginUpdate and EndUpdate are accumulative. You can call BeginUpdate as many times as you want. You must call the EndUpdate method each time you call BeginUpdate in orderto ensure the update will happen.
For C#/VB examples, refer to Flip.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2