2 types derived from DesignerOptionService
DesignSurfaceExt (1)
DesignerOptionServiceExt.cs (1)
6internal class DesignerOptionServiceBase : DesignerOptionService
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\WindowsFormsDesignerOptionService.cs (1)
11public class WindowsFormsDesignerOptionService : DesignerOptionService
50 references to DesignerOptionService
DesignSurfaceExt (24)
DesignSurfaceExt.cs (24)
27DesignerOptionService opsService = serviceProvider.GetService(typeof(DesignerOptionService)) as DesignerOptionService; 30serviceProvider.RemoveService(typeof(DesignerOptionService)); 33DesignerOptionService opsService2 = new DesignerOptionService4SnapLinesExtension(); 34serviceProvider.AddService(typeof(DesignerOptionService), opsService2); 40DesignerOptionService opsService = serviceProvider.GetService(typeof(DesignerOptionService)) as DesignerOptionService; 43serviceProvider.RemoveService(typeof(DesignerOptionService)); 46DesignerOptionService opsService2 = new DesignerOptionService4GridExtension(gridSize); 47serviceProvider.AddService(typeof(DesignerOptionService), opsService2); 53DesignerOptionService opsService = serviceProvider.GetService(typeof(DesignerOptionService)) as DesignerOptionService; 56serviceProvider.RemoveService(typeof(DesignerOptionService)); 59DesignerOptionService opsService2 = new DesignerOptionService4GridWithoutSnappingExtension(gridSize); 60serviceProvider.AddService(typeof(DesignerOptionService), opsService2); 66DesignerOptionService opsService = serviceProvider.GetService(typeof(DesignerOptionService)) as DesignerOptionService; 69serviceProvider.RemoveService(typeof(DesignerOptionService)); 72DesignerOptionService opsService2 = new DesignerOptionService4NoGuidesExtension(); 73serviceProvider.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)
378GetService<DesignerOptionService>() is not WindowsFormsDesignerOptionService dos
System.Windows.Forms.Design.Tests (14)
Mocks\MockSite.cs (1)
63.Setup(s => s.GetService(typeof(DesignerOptionService)))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (2)
320.Setup(p => p.GetService(typeof(DesignerOptionService))) 342mockServiceProvider.Verify(p => p.GetService(typeof(DesignerOptionService)), Times.Once());
System\Windows\Forms\Design\WindowsFormsDesignerOptionServiceTests.cs (10)
35DesignerOptionService.DesignerOptionCollection childCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options)); 58DesignerOptionService.DesignerOptionCollection childCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options)); 75DesignerOptionService.DesignerOptionCollection childCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options)); 82DesignerOptionService.DesignerOptionCollection otherChildCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options)); 98DesignerOptionService.DesignerOptionCollection childCollection = Assert.IsType<DesignerOptionService.DesignerOptionCollection>(Assert.Single(service.Options));
TestControlDesigner.Mocks.cs (1)
91.Setup(s => s.GetService(typeof(DesignerOptionService)))