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)
53PropertyDescriptor dockProp = TypeDescriptor.GetProperties(Component)[nameof(CustomButton.BackColor)]; 56Color 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!; 22EditorServiceContext.EditValue(_designer, Component!, nameof(ListView.Items)); 25EditorServiceContext.EditValue(_designer, Component!, nameof(ListView.Columns)); 28EditorServiceContext.EditValue(_designer, Component!, nameof(ListView.Groups)); 33set => TypeDescriptor.GetProperties(_listView)[nameof(View)]!.SetValue(Component, value); 39set => TypeDescriptor.GetProperties(_listView)[nameof(LargeImageList)]!.SetValue(Component, value); 45set => TypeDescriptor.GetProperties(_listView)[nameof(SmallImageList)]!.SetValue(Component, value);
System\Windows\Forms\Design\NotifyIconDesignerActionList.cs (1)
18EditorServiceContext.EditValue(_designer, Component!, "Icon");
System\Windows\Forms\Design\PictureBoxActionList.cs (2)
24set => TypeDescriptor.GetProperties(_pictureBox)[nameof(PictureBox.SizeMode)]!.SetValue(Component, value); 27public void ChooseImage() => EditorServiceContext.EditValue(_designer, Component!, nameof(PictureBox.Image));
System\Windows\Forms\Design\RichTextBoxActionList.cs (1)
20EditorServiceContext.EditValue(_designer, Component!, "Lines");
System\Windows\Forms\Design\TextBoxActionList.cs (1)
22set => TypeDescriptor.GetProperties(_textBox)[nameof(Multiline)]!.SetValue(Component, value);
System\Windows\Forms\Design\TreeViewActionList.cs (2)
21public void InvokeNodesDialog() => EditorServiceContext.EditValue(_designer, Component!, nameof(TreeView.Nodes)); 26set => TypeDescriptor.GetProperties(_treeView)[nameof(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);