2 instantiations of DesignerOptionCollection
System.ComponentModel.TypeConverter (2)
System\ComponentModel\Design\DesignerOptionService.cs (2)
23get => _options ??= new DesignerOptionCollection(this, null, string.Empty, null); 45return new DesignerOptionCollection(this, parent, name, value);
42 references to DesignerOptionCollection
DesignSurfaceExt (8)
DesignerOptionServiceExt.cs (8)
13protected override void PopulateOptionCollection(DesignerOptionCollection options) 23DesignerOptionCollection wfd = CreateOptionCollection(options, "WindowsFormsDesigner", null); 34protected override void PopulateOptionCollection(DesignerOptionCollection options) 47DesignerOptionCollection wfd = CreateOptionCollection(options, "WindowsFormsDesigner", null); 58protected override void PopulateOptionCollection(DesignerOptionCollection options) 71DesignerOptionCollection wfd = CreateOptionCollection(options, "WindowsFormsDesigner", null); 80protected override void PopulateOptionCollection(DesignerOptionCollection options) 93DesignerOptionCollection wfd = CreateOptionCollection(options, "WindowsFormsDesigner", null);
System.ComponentModel.TypeConverter (21)
System\ComponentModel\Design\DesignerOptionService.cs (21)
15private DesignerOptionCollection? _options; 21public DesignerOptionCollection Options 35protected DesignerOptionCollection CreateOptionCollection(DesignerOptionCollection parent, string name, object value) 60DesignerOptionCollection? options = Options; 77protected virtual void PopulateOptionCollection(DesignerOptionCollection options) 84protected virtual bool ShowDialog(DesignerOptionCollection options, object optionObject) => false; 125internal DesignerOptionCollection(DesignerOptionService service, DesignerOptionCollection? parent, string name, object? value) 161public DesignerOptionCollection? Parent { get; } 196foreach (DesignerOptionCollection child in _children) 213public DesignerOptionCollection? this[int index] 222return (DesignerOptionCollection?)_children[index]; 230public DesignerOptionCollection? this[string name] 235foreach (DesignerOptionCollection child in _children) 280public int IndexOf(DesignerOptionCollection value) 289private static object? RecurseFindValue(DesignerOptionCollection options) 296foreach (DesignerOptionCollection child in options) 443if (!(value is DesignerOptionCollection options)) 448foreach (DesignerOptionCollection option in options) 471private readonly DesignerOptionCollection _option; 473internal OptionPropertyDescriptor(DesignerOptionCollection option) : base(option.Name, null)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\WindowsFormsDesignerOptionService.cs (1)
23protected override void PopulateOptionCollection(DesignerOptionCollection options)
System.Windows.Forms.Design.Tests (12)
System\Windows\Forms\Design\WindowsFormsDesignerOptionServiceTests.cs (12)
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)); 109public void PopulateOptionCollectionEntry(DesignerOptionCollection options) 114protected override void PopulateOptionCollection(DesignerOptionCollection options)