4 types derived from DesignSurface
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
13public class DesignSurfaceExt : DesignSurface, IDesignSurfaceExt
System.Windows.Forms.Design.Tests (3)
System\ComponentModel\Design\DesignerHostTests.cs (1)
3145private class SubDesignSurface : DesignSurface
System\ComponentModel\Design\DesignSurfaceTests.cs (1)
1713private class SubDesignSurface : DesignSurface
System\ComponentModel\Design\SiteNestedContainerTests.cs (1)
1017private class SubDesignSurface : DesignSurface
42 instantiations of DesignSurface
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignSurfaceManager.cs (1)
274protected virtual DesignSurface CreateDesignSurfaceCore(IServiceProvider parentProvider) => new(parentProvider);
System.Windows.Forms.Design.Tests (40)
System\ComponentModel\Design\DesignSurfaceTests.cs (23)
169Assert.Throws<ArgumentNullException>("rootComponentType", () => new DesignSurface((Type)null)); 170Assert.Throws<ArgumentNullException>("rootComponentType", () => new DesignSurface(mockServiceProvider.Object, null)); 176using DesignSurface surface = new(); 185using DesignSurface surface = new() 343using DesignSurface surface = new(); 921using DesignSurface surface = new(); 943using DesignSurface surface = new(); 967using DesignSurface surface = new(); 1131using DesignSurface surface = new(); 1142using DesignSurface surface = new(); 1152using DesignSurface surface = new(); 1160using DesignSurface surface = new(); 1168using DesignSurface surface = new(); 1229using DesignSurface surface = new(); 1425using DesignSurface surface = new(); 1435using DesignSurface surface = new(); 1446using DesignSurface surface = new(); 1477using DesignSurface surface = new(mockServiceProvider.Object); 1501using DesignSurface surface = new(); 1509using DesignSurface surface = new(); 1516using DesignSurface surface = new(); 1523using DesignSurface surface = new(); 1554using DesignSurface surface = new();
System\ComponentModel\Design\ExtenderProviderServiceTests.cs (7)
13DesignSurface surface = new(); 22DesignSurface surface = new(); 40DesignSurface surface = new(); 49DesignSurface surface = new(); 62DesignSurface surface = new(); 87DesignSurface surface = new(); 99DesignSurface surface = new();
System\ComponentModel\Design\SiteNestedContainerTests.cs (9)
404using DesignSurface surface = new(mockServiceProvider.Object); 566using DesignSurface surface = new(); 592using DesignSurface surface = new(); 603using DesignSurface surface = new(); 619using DesignSurface surface = new(); 810using DesignSurface surface = new(mockServiceProvider.Object); 858using DesignSurface surface = new(mockParentProvider?.Object); 875using DesignSurface surface = new(); 894using DesignSurface surface = new();
SystemDesignMetadataReader.cs (1)
16DesignSurface designSurface = new();
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
60DesignSurface designSurface = new(serviceContainer);
89 references to DesignSurface
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net10.0\System.Design.Forwards.cs (1)
28[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.DesignSurface))]
System.Windows.Forms.Design (40)
System\ComponentModel\Design\ActiveDesignSurfaceChangedEventArgs.cs (4)
14public ActiveDesignSurfaceChangedEventArgs(DesignSurface? oldSurface, DesignSurface? newSurface) 23public DesignSurface? OldSurface { get; } 28public DesignSurface? NewSurface { get; }
System\ComponentModel\Design\DesignerEventService.cs (4)
38internal void OnActivateDesigner(DesignSurface? surface) 117internal void OnCreateDesigner(DesignSurface surface) 140DesignSurface surface = (DesignSurface)sender!;
System\ComponentModel\Design\DesignerHost.cs (2)
50private DesignSurface? _surface; // the owning designer surface. 66public DesignerHost(DesignSurface surface)
System\ComponentModel\Design\DesignSurface.cs (1)
358_serviceContainer.RemoveService<DesignSurface>();
System\ComponentModel\Design\DesignSurfaceCollection.cs (7)
31public DesignSurface this[int index] 36if (host.GetService(typeof(DesignSurface)) is DesignSurface surface) 58foreach (DesignSurface surface in this) 64public void CopyTo(DesignSurface[] array, int index) => ((ICollection)this).CopyTo(array, index); 86if (host.GetService(typeof(DesignSurface)) is DesignSurface surface)
System\ComponentModel\Design\DesignSurfaceEvent.cs (2)
19public DesignSurfaceEventArgs(DesignSurface surface) 27public DesignSurface Surface { get; }
System\ComponentModel\Design\DesignSurfaceManager.cs (15)
48public virtual DesignSurface? ActiveDesignSurface 50get => EventService?.ActiveDesigner?.GetService<DesignSurface>(); 227public DesignSurface CreateDesignSurface() 229DesignSurface surface = CreateDesignSurfaceCore(this); 252public DesignSurface CreateDesignSurface(IServiceProvider parentProvider) 258DesignSurface surface = CreateDesignSurfaceCore(mergedProvider); 274protected virtual DesignSurface CreateDesignSurfaceCore(IServiceProvider parentProvider) => new(parentProvider); 337DesignSurface? oldSurface = e.OldDesigner?.GetService<DesignSurface>(); 338DesignSurface? newSurface = e.NewDesigner?.GetService<DesignSurface>(); 356if (e.Designer!.GetService(typeof(DesignSurface)) is DesignSurface surface) 374if (e.Designer!.GetService(typeof(DesignSurface)) is DesignSurface surface)
System\ComponentModel\Design\LoadedEventHandler.cs (1)
7/// Represents a method that will handle a <see cref="DesignSurface.Loaded"/> event.
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (2)
736DesignSurface? thisSurface = GetService<DesignSurface>();
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
110private DesignSurface _designSurface; 125_designSurface = component.Site.GetService<DesignSurface>();
System.Windows.Forms.Design.Tests (47)
System\ComponentModel\Design\DesignSurfaceTests.cs (30)
176using DesignSurface surface = new(); 185using DesignSurface surface = new() 257Assert.Same(surface, container.GetService(typeof(DesignSurface))); 300[InlineData(typeof(DesignSurface))] 343using DesignSurface surface = new(); 921using DesignSurface surface = new(); 943using DesignSurface surface = new(); 967using DesignSurface surface = new(); 1131using DesignSurface surface = new(); 1142using DesignSurface surface = new(); 1152using DesignSurface surface = new(); 1160using DesignSurface surface = new(); 1168using DesignSurface surface = new(); 1178Assert.Same(surface, container.GetService(typeof(DesignSurface))); 1181Assert.Null(container.GetService(typeof(DesignSurface))); 1229using DesignSurface surface = new(); 1269Assert.Same(surface, container.GetService(typeof(DesignSurface))); 1272Assert.Null(container.GetService(typeof(DesignSurface))); 1280Assert.Same(surface, container.GetService(typeof(DesignSurface))); 1283Assert.Same(surface, container.GetService(typeof(DesignSurface))); 1425using DesignSurface surface = new(); 1435using DesignSurface surface = new(); 1446using DesignSurface surface = new(); 1477using DesignSurface surface = new(mockServiceProvider.Object); 1501using DesignSurface surface = new(); 1509using DesignSurface surface = new(); 1516using DesignSurface surface = new(); 1523using DesignSurface surface = new(); 1524Assert.Same(surface, surface.GetService(typeof(DesignSurface))); 1554using DesignSurface surface = new();
System\ComponentModel\Design\ExtenderProviderServiceTests.cs (7)
13DesignSurface surface = new(); 22DesignSurface surface = new(); 40DesignSurface surface = new(); 49DesignSurface surface = new(); 62DesignSurface surface = new(); 87DesignSurface surface = new(); 99DesignSurface surface = new();
System\ComponentModel\Design\SiteNestedContainerTests.cs (9)
404using DesignSurface surface = new(mockServiceProvider.Object); 566using DesignSurface surface = new(); 592using DesignSurface surface = new(); 603using DesignSurface surface = new(); 619using DesignSurface surface = new(); 810using DesignSurface surface = new(mockServiceProvider.Object); 858using DesignSurface surface = new(mockParentProvider?.Object); 875using DesignSurface surface = new(); 894using DesignSurface surface = new();
SystemDesignMetadataReader.cs (1)
16DesignSurface designSurface = new();
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
60DesignSurface designSurface = new(serviceContainer);