5 types derived from DesignerOptionService
DesignSurfaceExt (4)
DesignerOptionServiceExt.cs (4)
9internal sealed class DesignerOptionServiceExt4SnapLines : DesignerOptionService 28internal sealed class DesignerOptionServiceExt4Grid : DesignerOptionService 52internal sealed class DesignerOptionServiceExt4GridWithoutSnapping : DesignerOptionService 76internal sealed class DesignerOptionServiceExt4NoGuides : DesignerOptionService
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\WindowsFormsDesignerOptionService.cs (1)
13public class WindowsFormsDesignerOptionService : DesignerOptionService
50 references to DesignerOptionService
DesignSurfaceExt (24)
DesignSurfaceExt.cs (24)
34DesignerOptionService opsService = serviceProvider.GetService(typeof(DesignerOptionService)) as DesignerOptionService; 37serviceProvider.RemoveService(typeof(DesignerOptionService)); 40DesignerOptionService opsService2 = new DesignerOptionServiceExt4SnapLines(); 41serviceProvider.AddService(typeof(DesignerOptionService), opsService2); 47DesignerOptionService opsService = serviceProvider.GetService(typeof(DesignerOptionService)) as DesignerOptionService; 50serviceProvider.RemoveService(typeof(DesignerOptionService)); 53DesignerOptionService opsService2 = new DesignerOptionServiceExt4Grid(gridSize); 54serviceProvider.AddService(typeof(DesignerOptionService), opsService2); 60DesignerOptionService opsService = serviceProvider.GetService(typeof(DesignerOptionService)) as DesignerOptionService; 63serviceProvider.RemoveService(typeof(DesignerOptionService)); 66DesignerOptionService opsService2 = new DesignerOptionServiceExt4GridWithoutSnapping(gridSize); 67serviceProvider.AddService(typeof(DesignerOptionService), opsService2); 73DesignerOptionService opsService = serviceProvider.GetService(typeof(DesignerOptionService)) as DesignerOptionService; 76serviceProvider.RemoveService(typeof(DesignerOptionService)); 79DesignerOptionService opsService2 = new DesignerOptionServiceExt4NoGuides(); 80serviceProvider.AddService(typeof(DesignerOptionService), opsService2);
netstandard (1)
netstandard.cs (1)
238[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.DesignerOptionService))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
224[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.DesignerOptionService))]
System.ComponentModel.TypeConverter (2)
System\ComponentModel\Design\DesignerOptionService.cs (2)
117private readonly DesignerOptionService _service; 125internal DesignerOptionCollection(DesignerOptionService service, DesignerOptionCollection? parent, string name, object? value)
System.Windows.Forms.Design (8)
System\ComponentModel\Design\DesignerActionUIService.cs (2)
75if (_serviceProvider.GetService(typeof(DesignerOptionService)) is DesignerOptionService opts)
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
28if (manager.TryGetService(out DesignerOptionService? options))
System\Windows\Forms\Design\Behavior\SelectionManager.cs (2)
81DesignerOptionService? options = _designerHost.GetService<DesignerOptionService>();
System\Windows\Forms\Design\DesignerUtils.cs (2)
352if (provider.TryGetService(out DesignerOptionService? options)) 371if (provider.TryGetService(out DesignerOptionService? designerOptionService))
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
397if (GetService(typeof(DesignerOptionService)) is WindowsFormsDesignerOptionService dos)
System.Windows.Forms.Design.Tests (14)
Mocks\MockSite.cs (1)
61.Setup(s => s.GetService(typeof(DesignerOptionService)))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (2)
316.Setup(p => p.GetService(typeof(DesignerOptionService))) 338mockServiceProvider.Verify(p => p.GetService(typeof(DesignerOptionService)), Times.Once());
System\Windows\Forms\Design\WindowsFormsDesignerOptionServiceTests.cs (10)
33DesignerOptionService.DesignerOptionCollection childCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options)); 56DesignerOptionService.DesignerOptionCollection childCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options)); 73DesignerOptionService.DesignerOptionCollection childCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options)); 80DesignerOptionService.DesignerOptionCollection otherChildCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options)); 96DesignerOptionService.DesignerOptionCollection childCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options));
TestControlDesigner.Mocks.cs (1)
93.Setup(s => s.GetService(typeof(DesignerOptionService)))