2 instantiations of DesignerOptionCollection
System.ComponentModel.TypeConverter (2)
System\ComponentModel\Design\DesignerOptionService.cs (2)
19public DesignerOptionCollection Options => field ??= new DesignerOptionCollection(this, null, string.Empty, null); 40return new DesignerOptionCollection(this, parent, name, value);
35 references to DesignerOptionCollection
DemoConsole (2)
DesignerOptionServiceExtended.cs (2)
21protected override void PopulateOptionCollection(DesignerOptionCollection options) 36DesignerOptionCollection wfd = CreateOptionCollection(options, "WindowsFormsDesigner", null);
System.ComponentModel.TypeConverter (20)
System\ComponentModel\Design\DesignerOptionService.cs (20)
19public DesignerOptionCollection Options => field ??= new DesignerOptionCollection(this, null, string.Empty, null); 30protected DesignerOptionCollection CreateOptionCollection(DesignerOptionCollection parent, string name, object value) 55DesignerOptionCollection? options = Options; 72protected virtual void PopulateOptionCollection(DesignerOptionCollection options) 79protected virtual bool ShowDialog(DesignerOptionCollection options, object optionObject) => false; 120internal DesignerOptionCollection(DesignerOptionService service, DesignerOptionCollection? parent, string name, object? value) 156public DesignerOptionCollection? Parent { get; } 191foreach (DesignerOptionCollection child in _children) 208public DesignerOptionCollection? this[int index] 217return (DesignerOptionCollection?)_children[index]; 225public DesignerOptionCollection? this[string name] 230foreach (DesignerOptionCollection child in _children) 275public int IndexOf(DesignerOptionCollection value) 284private static object? RecurseFindValue(DesignerOptionCollection options) 291foreach (DesignerOptionCollection child in options) 438if (!(value is DesignerOptionCollection options)) 443foreach (DesignerOptionCollection option in options) 466private readonly DesignerOptionCollection _option; 468internal OptionPropertyDescriptor(DesignerOptionCollection option) : base(option.Name, null)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\WindowsFormsDesignerOptionService.cs (1)
21protected override void PopulateOptionCollection(DesignerOptionCollection options)
System.Windows.Forms.Design.Tests (12)
System\Windows\Forms\Design\WindowsFormsDesignerOptionServiceTests.cs (12)
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)); 111public void PopulateOptionCollectionEntry(DesignerOptionCollection options) 116protected override void PopulateOptionCollection(DesignerOptionCollection options)