Dela via


RibbonDialogLauncher.SuspendLayout Method (2007 System)

Prevents the Microsoft Office application from refreshing the state of controls in the OfficeRibbon.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)

Syntax

'Declaration
Public Sub SuspendLayout
'Usage
Dim instance As RibbonDialogLauncher

instance.SuspendLayout()
public void SuspendLayout()
public:
virtual void SuspendLayout() sealed
public final function SuspendLayout()

Remarks

Calling SuspendLayout might result in a slight performance increase if your application has many controls that are frequently updated.

After you change the state of each control, you can call ResumeLayout to allow the UI to be refreshed.

Every time SuspendLayout is called, an internal counter is incremented. ResumeLayout decrements this same counter. When this internal counter becomes equal to zero, Microsoft Office redraws the control.

.NET Framework Security

See Also

Reference

RibbonDialogLauncher Class

RibbonDialogLauncher Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview