RibbonDialogLauncher.SuspendLayout Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prevents the Microsoft Office application from refreshing the state of controls in the OfficeRibbon.
public:
void SuspendLayout();
public void SuspendLayout ();
abstract member SuspendLayout : unit -> unit
Public Sub 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.