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)
59Assert.Equal(expected, service.GetComponentActions(component)); 85Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component)); 115Assert.Equal(expected, service.GetComponentActions(component)); 141Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.GetComponentActions(component)); 168Assert.NotEmpty(service.GetComponentActions(component)); 172Assert.Empty(service.GetComponentActions(component)); 177Assert.Empty(service.GetComponentActions(component)); 386Assert.Throws<ArgumentNullException>("component", () => service.GetComponentActions(null)); 663Assert.NotEmpty(service.GetComponentActions(component)); 667Assert.Empty(service.GetComponentActions(component)); 672Assert.Empty(service.GetComponentActions(component)); 748Assert.Empty(service.GetComponentActions(component1)); 749Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 750Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 751Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 759Assert.Empty(service.GetComponentActions(component1)); 760Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 761Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 762Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 770Assert.Empty(service.GetComponentActions(component1)); 771Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 772Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 773Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 781Assert.Empty(service.GetComponentActions(component1)); 783if (service.GetComponentActions(component2).Count == 1) 785Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 786Assert.Empty(service.GetComponentActions(component3)); 790Assert.Empty(service.GetComponentActions(component2)); 791Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 794Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 796if (service.GetComponentActions(component2).Count == 1) 811Assert.Empty(service.GetComponentActions(component1)); 813if (service.GetComponentActions(component2).Count == 1) 815Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 816Assert.Empty(service.GetComponentActions(component3)); 820Assert.Empty(service.GetComponentActions(component2)); 821Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 824Assert.Empty(service.GetComponentActions(component4)); 826if (service.GetComponentActions(component2).Count == 1) 847Assert.Single(service.GetComponentActions(component)); 915Assert.Empty(service.GetComponentActions(component1)); 916Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 917Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 918Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 926Assert.Empty(service.GetComponentActions(component1)); 927Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.GetComponentActions(component2)); 928Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 929Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 937Assert.Empty(service.GetComponentActions(component1)); 938Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component2)); 939Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 940Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 948Assert.Empty(service.GetComponentActions(component1)); 949Assert.Empty(service.GetComponentActions(component2)); 950Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 951Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.GetComponentActions(component4)); 959Assert.Empty(service.GetComponentActions(component1)); 960Assert.Empty(service.GetComponentActions(component2)); 961Assert.Equal(new DesignerActionListCollection { actionList3 }, service.GetComponentActions(component3)); 962Assert.Empty(service.GetComponentActions(component4)); 977Assert.Single(service.GetComponentActions(component));