Spread Windows Forms 9.0 Product Documentation
SuspendLayout Method
Example 


Temporarily suspends the layout logic for this component.
Syntax
'Declaration
 
Public Shadows Sub SuspendLayout() 
'Usage
 
Dim instance As FpSpread
 
instance.SuspendLayout()
public new void SuspendLayout()
Remarks
The layout logic of the component is suspended until the ResumeLayout method is called. The SuspendLayout and ResumeLayout methods are used in tandem to suppress multiple layout events while you adjust multiple properties of the component. You would typically call the SuspendLayout method, then set properties of the component, and then call the ResumeLayout method to allow the changes to take effect.
Example
This example suspends temporarily the layout of the Spread component.
bool b;

fpSpread1.SuspendLayout();

b = fpSpread1.IsLayoutSuspended();

if (b == true)

{
   
fpSpread1.SkipMouseProcessing = true;

}
Dim b As Boolean

FpSpread1.SuspendLayout()

b = FpSpread1.IsLayoutSuspended()

If b = True Then
    
FpSpread1.SkipMouseProcessing = True

End If
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

FpSpread Class
FpSpread Members
ResumeLayout Method

User-Task Documentation

Improving Performance by Suspending the Layout

 

 


Copyright © GrapeCity, inc. All rights reserved.