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