1 instantiation of DesignSurface
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignSurfaceManager.cs (1)
250protected virtual DesignSurface CreateDesignSurfaceCore(IServiceProvider parentProvider) => new(parentProvider);
41 references to DesignSurface
System.Design (1)
src\winforms\artifacts\obj\System.Design.Facade\Release\net11.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>(); 203public DesignSurface CreateDesignSurface() 205DesignSurface surface = CreateDesignSurfaceCore(this); 228public DesignSurface CreateDesignSurface(IServiceProvider parentProvider) 234DesignSurface surface = CreateDesignSurfaceCore(mergedProvider); 250protected virtual DesignSurface CreateDesignSurfaceCore(IServiceProvider parentProvider) => new(parentProvider); 313DesignSurface? oldSurface = e.OldDesigner?.GetService<DesignSurface>(); 314DesignSurface? newSurface = e.NewDesigner?.GetService<DesignSurface>(); 332if (e.Designer!.GetService(typeof(DesignSurface)) is DesignSurface surface) 350if (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)
733DesignSurface? thisSurface = GetService<DesignSurface>();
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
110private DesignSurface _designSurface; 125_designSurface = component.Site.GetService<DesignSurface>();