Spread Windows Forms 6.0 Product Documentation
SuspendLayout Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : SuspendLayout Method


Glossary Item Box

Temporarily suspends the layout logic for this component.

Syntax

Visual Basic (Declaration) 
Public Shadows Sub SuspendLayout() 
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
 
instance.SuspendLayout()
C# 
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.
C#Copy Code
bool b;

fpSpread1.SuspendLayout();

b = fpSpread1.IsLayoutSuspended();

if (b == true)

{
   
fpSpread1.SkipMouseProcessing = true;

}
Visual BasicCopy Code
Dim b As Boolean

FpSpread1.SuspendLayout()

b = FpSpread1.IsLayoutSuspended()

If b = True Then
    
FpSpread1.SkipMouseProcessing = True

End If

Requirements

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

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.