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