| File: System\Windows\Forms\Controls\ListBoxes\ListBox.SuspendMutation.cs | Web Access |
| Project: src\winforms\src\System.Windows.Forms\System.Windows.Forms.csproj (System.Windows.Forms) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Windows.Forms; public partial class ListBox { #if NET11_0_OR_GREATER /// <inheritdoc/> protected override void BeginSuspendPaintingCore() { BeginSuspendPaintingScope(); BeginUpdate(); } /// <inheritdoc/> protected override void EndSuspendPaintingCore() { if (EndSuspendPaintingScope()) { EndUpdate(invalidate: !IsRecursiveInvalidateAfterSuspendPaintingRequested); } } #endif }