1 write to Component
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionList.cs (1)
16public DesignerActionList(IComponent? component) => Component = component;
37 references to Component
DesignSurface (2)
CustomControls\CustomButtonDesignerActionList.cs (2)
50PropertyDescriptor dockProp = TypeDescriptor.GetProperties(Component)[nameof(CustomButton.BackColor)]; 53Color backColor = (Color)dockProp.GetValue(Component);
System.Windows.Forms.Design (31)
System\ComponentModel\Design\DesignerActionList.cs (1)
22public object? GetService(Type serviceType) => Component?.Site?.GetService(serviceType);
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (6)
23if (Component is null) 28PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(Component)["Dock"]; 31DockStyle dockStyle = (DockStyle)dockProp.GetValue(Component)!; 64PropertyDescriptor dockProp = TypeDescriptor.GetProperties(Component!)["Dock"]!; 65DockStyle dockStyle = (DockStyle)dockProp.GetValue(Component)!; 66dockProp.SetValue(Component, dockStyle == DockStyle.Fill ? DockStyle.None : DockStyle.Fill);
System\Windows\Forms\Design\ImageListActionList.cs (9)
20public void ChooseImages() => EditorServiceContext.EditValue(_designer, Component!, "Images"); 24get => (Component as ImageList)!.ColorDepth; 27if (Component is not null) 29TypeDescriptor.GetProperties(Component)[nameof(ColorDepth)]?.SetValue(Component, value); 36get => (Component as ImageList)!.ImageSize; 39if (Component is not null) 41TypeDescriptor.GetProperties(Component)[nameof(ImageSize)]?.SetValue(Component, value);
System\Windows\Forms\Design\ListControlUnboundActionList.cs (1)
20EditorServiceContext.EditValue(_designer, Component!, "Items");
System\Windows\Forms\Design\ListViewActionList.cs (7)
18_listView = (ListView)Component!; 23EditorServiceContext.EditValue(_designer, Component!, "Items"); 28EditorServiceContext.EditValue(_designer, Component!, "Columns"); 33EditorServiceContext.EditValue(_designer, Component!, "Groups"); 44TypeDescriptor.GetProperties(_listView)["View"]!.SetValue(Component, value); 56TypeDescriptor.GetProperties(_listView)["LargeImageList"]!.SetValue(Component, value); 68TypeDescriptor.GetProperties(_listView)["SmallImageList"]!.SetValue(Component, value);
System\Windows\Forms\Design\NotifyIconDesignerActionList.cs (1)
18EditorServiceContext.EditValue(_designer, Component!, "Icon");
System\Windows\Forms\Design\PictureBoxActionList.cs (2)
29TypeDescriptor.GetProperties(_pictureBox)["SizeMode"]!.SetValue(Component, value); 35EditorServiceContext.EditValue(_designer, Component!, "Image");
System\Windows\Forms\Design\RichTextBoxActionList.cs (1)
20EditorServiceContext.EditValue(_designer, Component!, "Lines");
System\Windows\Forms\Design\TextBoxActionList.cs (1)
27TypeDescriptor.GetProperties(_textBox)["Multiline"]!.SetValue(Component, value);
System\Windows\Forms\Design\TreeViewActionList.cs (2)
23EditorServiceContext.EditValue(_designer, Component!, "Nodes"); 34TypeDescriptor.GetProperties(_treeView)["ImageList"]!.SetValue(Component, value);
System.Windows.Forms.Design.Tests (4)
System\ComponentModel\Design\DesignerActionListTests.cs (1)
22Assert.Equal(component, list.Component);
System\ComponentModel\Design\DesignerActionServiceTests.cs (1)
501Assert.Null(actionList.Component);
System\Windows\Forms\Design\ImageListActionListTests.cs (1)
35_actionList.Component.Should().Be(_imageListDesigner.Component);
System\Windows\Forms\Design\ListViewActionListTests.cs (1)
34_actionList.Component.Should().Be(_listView);