69 references to GetComponentActions
System.Windows.Forms.Design (8)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
613relatedLists = actionService.GetComponentActions(relatedComponent);
System\ComponentModel\Design\DesignerActionService.cs (4)
78OnDesignerActionListsChanged(new DesignerActionListsChangedEventArgs(comp, DesignerActionListsChangedType.ActionListsAdded, GetComponentActions(comp))); 108OnDesignerActionListsChanged(new(comp, DesignerActionListsChangedType.ActionListsRemoved, GetComponentActions(comp))); 312OnDesignerActionListsChanged(new DesignerActionListsChangedEventArgs(comp, DesignerActionListsChangedType.ActionListsRemoved, GetComponentActions(comp))); 366OnDesignerActionListsChanged(new DesignerActionListsChangedEventArgs(comp, DesignerActionListsChangedType.ActionListsRemoved, GetComponentActions(comp)));
System\ComponentModel\Design\DesignerActionUI.cs (1)
179dalColl ??= _designerActionService.GetComponentActions(comp);
System\ComponentModel\Design\DesignerActionUIService.cs (1)
87DesignerActionListCollection coll = _designerActionService.GetComponentActions(component);
System\ComponentModel\Design\MenuCommandService.cs (1)
223DesignerActionListCollection actionLists = daSvc.GetComponentActions(selectedComponent);
System.Windows.Forms.Design.Tests (61)
System\ComponentModel\Design\DesignerActionServiceTests.cs (61)
61Assert.Equal(expected, service.GetComponentActions(component)); 87Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component)); 117Assert.Equal(expected, service.GetComponentActions(component)); 143Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component)); 170Assert.NotEmpty(service.GetComponentActions(component)); 174Assert.Empty(service.GetComponentActions(component)); 179Assert.Empty(service.GetComponentActions(component)); 388Assert.Throws<ArgumentNullException>("component", () => service.GetComponentActions(null)); 665Assert.NotEmpty(service.GetComponentActions(component)); 669Assert.Empty(service.GetComponentActions(component)); 674Assert.Empty(service.GetComponentActions(component)); 750Assert.Empty(service.GetComponentActions(component1)); 751Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 752Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 753Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 761Assert.Empty(service.GetComponentActions(component1)); 762Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 763Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 764Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 772Assert.Empty(service.GetComponentActions(component1)); 773Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 774Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 775Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 783Assert.Empty(service.GetComponentActions(component1)); 785if (service.GetComponentActions(component2).Count == 1) 787Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 788Assert.Empty(service.GetComponentActions(component3)); 792Assert.Empty(service.GetComponentActions(component2)); 793Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 796Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 798if (service.GetComponentActions(component2).Count == 1) 813Assert.Empty(service.GetComponentActions(component1)); 815if (service.GetComponentActions(component2).Count == 1) 817Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 818Assert.Empty(service.GetComponentActions(component3)); 822Assert.Empty(service.GetComponentActions(component2)); 823Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 826Assert.Empty(service.GetComponentActions(component4)); 828if (service.GetComponentActions(component2).Count == 1) 849Assert.Single(service.GetComponentActions(component)); 917Assert.Empty(service.GetComponentActions(component1)); 918Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 919Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 920Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 928Assert.Empty(service.GetComponentActions(component1)); 929Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 930Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 931Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 939Assert.Empty(service.GetComponentActions(component1)); 940Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 941Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 942Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 950Assert.Empty(service.GetComponentActions(component1)); 951Assert.Empty(service.GetComponentActions(component2)); 952Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 953Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 961Assert.Empty(service.GetComponentActions(component1)); 962Assert.Empty(service.GetComponentActions(component2)); 963Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 964Assert.Empty(service.GetComponentActions(component4)); 979Assert.Single(service.GetComponentActions(component));