13 implementations of IExtenderProvider
System.Windows.Forms (6)
System\Windows\Forms\Design\PropertyTab.cs (1)
30public abstract class PropertyTab : IExtenderProvider
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (1)
23public partial class ErrorProvider : Component, IExtenderProvider, ISupportInitialize
System\Windows\Forms\Help\HelpProvider.cs (1)
18public class HelpProvider : Component, IExtenderProvider
System\Windows\Forms\Panels\FlowLayoutPanel.cs (1)
14public class FlowLayoutPanel : Panel, IExtenderProvider
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
22public class TableLayoutPanel : Panel, IExtenderProvider
System\Windows\Forms\ToolTip\ToolTip.cs (1)
17public partial class ToolTip : Component, IExtenderProvider, IHandle<HWND>
System.Windows.Forms.Design (5)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (1)
16private class ModifiersExtenderProvider : IExtenderProvider
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersInheritedExtenderProvider.cs (1)
17private class ModifiersInheritedExtenderProvider : IExtenderProvider
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (1)
18internal class LanguageExtenders : IExtenderProvider
System\Windows\Forms\Design\ComponentTray.cs (1)
25public class ComponentTray : ScrollableControl, IExtenderProvider, ISelectionUIHandler, IOleDragClient
System\Windows\Forms\Design\DesignerExtenders.NameExtenderProvider.cs (1)
16private class NameExtenderProvider : IExtenderProvider
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\DesignerHostTests.cs (1)
3209private class RootExtenderProviderDesignerComponent : Component, IExtenderProvider
System\ComponentModel\Design\SiteNestedContainerTests.cs (1)
1076private class RootExtenderProviderDesignerComponent : Component, IExtenderProvider
115 references to IExtenderProvider
netstandard (1)
netstandard.cs (1)
333[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.IExtenderProvider))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
319[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.IExtenderProvider))]
System.ComponentModel.TypeConverter (42)
System\ComponentModel\DelegatingTypeDescriptionProvider.cs (1)
89protected internal override IExtenderProvider[] GetExtenderProviders(object instance)
System\ComponentModel\Design\IExtenderListService.cs (1)
14IExtenderProvider[] GetExtenderProviders();
System\ComponentModel\Design\IExtenderProviderService.cs (2)
14void AddExtenderProvider(IExtenderProvider provider); 19void RemoveExtenderProvider(IExtenderProvider provider);
System\ComponentModel\ExtendedPropertyDescriptor.cs (2)
16private readonly IExtenderProvider _provider; // the object providing it 22public ExtendedPropertyDescriptor(ReflectPropertyDescriptor extenderInfo, Type? receiverType, IExtenderProvider provider, Attribute[]? attributes)
System\ComponentModel\ExtenderProvidedPropertyAttribute.cs (2)
19internal static ExtenderProvidedPropertyAttribute Create(PropertyDescriptor? extenderProperty, Type? receiverType, IExtenderProvider? provider) 44public IExtenderProvider? Provider { get; private set; }
System\ComponentModel\ReflectPropertyDescriptor.cs (15)
526internal bool ExtenderCanResetValue(IExtenderProvider provider, object component) 541IExtenderProvider? prov = (IExtenderProvider?)GetInvocationTarget(_componentClass, provider); 556internal object? ExtenderGetValue(IExtenderProvider? provider, object? component) 560IExtenderProvider? prov = (IExtenderProvider?)GetInvocationTarget(_componentClass, provider); 566internal void ExtenderResetValue(IExtenderProvider provider, object component, PropertyDescriptor notifyDesc) 607IExtenderProvider? prov = (IExtenderProvider?)GetInvocationTarget(_componentClass, provider); 622internal void ExtenderSetValue(IExtenderProvider? provider, object? component, object? value, PropertyDescriptor notifyDesc) 654IExtenderProvider? prov = (IExtenderProvider?)GetInvocationTarget(_componentClass, provider); 666internal bool ExtenderShouldSerializeValue(IExtenderProvider provider, object component) 668IExtenderProvider? prov = (IExtenderProvider?)GetInvocationTarget(_componentClass, provider);
System\ComponentModel\ReflectTypeDescriptionProvider.cs (15)
572IExtenderProvider[] extenders = GetExtenderProviders(instance); 649protected internal override IExtenderProvider[] GetExtenderProviders(object instance) 672return Array.Empty<IExtenderProvider>(); 684private static IExtenderProvider[] GetExtenders(ICollection components, object instance, IDictionary? cache) 688IExtenderProvider[]? existingExtenders = null; 700IExtenderProvider[]? currentExtenders = components as IExtenderProvider[]; 704existingExtenders = cache[ExtenderProviderKey] as IExtenderProvider[]; 736IExtenderProvider? prov = obj as IExtenderProvider; 758IExtenderProvider[] newExtenderArray = new IExtenderProvider[extenderCount]; 781IExtenderProvider? p = component as IExtenderProvider; 1236private static PropertyDescriptor[] ReflectGetExtendedProperties(IExtenderProvider provider)
System\ComponentModel\TypeDescriptionProvider.cs (2)
142protected internal virtual IExtenderProvider[] GetExtenderProviders(object instance) 151return Array.Empty<IExtenderProvider>();
System\ComponentModel\TypeDescriptor.cs (2)
1274IExtenderProvider? prov = exAttr?.Provider; 3306protected internal override IExtenderProvider[] GetExtenderProviders(object instance)
System.Windows.Forms (2)
System\Windows\Forms\Panels\FlowLayoutPanel.cs (1)
53bool IExtenderProvider.CanExtend(object obj) => obj is Control control && control.Parent == this;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
176bool IExtenderProvider.CanExtend(object obj) =>
System.Windows.Forms.Design (15)
System\ComponentModel\Design\DesignerHost.cs (5)
233if (component is IExtenderProvider extenderComponent 287if (designer is IExtenderProvider extenderProvider) 321if (loader is IExtenderProvider extenderProvider && this.TryGetService(out IExtenderProviderService? eps)) 646if (component is IExtenderProvider extenderComponent && this.TryGetService(out IExtenderProviderService? eps)) 654if (designer is IExtenderProvider extenderDesigner && this.TryGetService(out eps))
System\ComponentModel\Design\ExtenderProviderService.cs (4)
13private List<IExtenderProvider>? _providers; 22IExtenderProvider[] IExtenderListService.GetExtenderProviders() => 28void IExtenderProviderService.AddExtenderProvider(IExtenderProvider provider) 45void IExtenderProviderService.RemoveExtenderProvider(IExtenderProvider provider)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
37private IExtenderProvider[]? _extenderProviders; 112foreach (IExtenderProvider provider in _extenderProviders!) 615foreach (IExtenderProvider p in _extenderProviders)
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
193if (ce.Component is not null and not IExtenderProvider)
System\Windows\Forms\Design\ComponentTray.cs (1)
481bool IExtenderProvider.CanExtend(object extendee)
System\Windows\Forms\Design\DesignerExtenders.cs (1)
15private IExtenderProvider[]? _providers;
System.Windows.Forms.Design.Tests (50)
System\ComponentModel\Design\DesignerHostTests.cs (19)
402.Setup(s => s.AddExtenderProvider(component as IExtenderProvider)) 405.Setup(s => s.RemoveExtenderProvider(component as IExtenderProvider)); 432mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Exactly(expectedCallCount)); 439mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Exactly(expectedCallCount)); 446mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Exactly(expectedCallCount)); 473.Setup(s => s.AddExtenderProvider(component as IExtenderProvider)) 476.Setup(s => s.RemoveExtenderProvider(component as IExtenderProvider)); 502mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Never()); 509mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Never()); 516mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Never()); 2593.Setup(s => s.AddExtenderProvider(component as IExtenderProvider)); 2595.Setup(s => s.RemoveExtenderProvider(component as IExtenderProvider)) 2629mockExtenderProviderService.Verify(s => s.RemoveExtenderProvider(component as IExtenderProvider), Times.Exactly(expectedRemoveCallCount)); 2636mockExtenderProviderService.Verify(s => s.RemoveExtenderProvider(component as IExtenderProvider), Times.Exactly(expectedRemoveCallCount)); 2663.Setup(s => s.AddExtenderProvider(component as IExtenderProvider)) 2666.Setup(s => s.RemoveExtenderProvider(component as IExtenderProvider)); 2692mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Never()); 2699mockExtenderProviderService.Verify(s => s.RemoveExtenderProvider(component as IExtenderProvider), Times.Never()); 2706mockExtenderProviderService.Verify(s => s.RemoveExtenderProvider(component as IExtenderProvider), Times.Never());
System\ComponentModel\Design\DesignSurfaceTests.cs (4)
628var mockExtenderProvider = mockLoader.As<IExtenderProvider>(); 648.Setup(s => s.AddExtenderProvider(It.IsAny<IExtenderProvider>())) 668var mockExtenderProvider = mockLoader.As<IExtenderProvider>(); 713var mockExtenderProvider = mockLoader.As<IExtenderProvider>();
System\ComponentModel\Design\ExtenderProviderServiceTests.cs (6)
26Mock<IExtenderProvider> mockExtenderProvider1 = new(MockBehavior.Strict); 27Mock<IExtenderProvider> mockExtenderProvider2 = new(MockBehavior.Strict); 53Mock<IExtenderProvider> mockExtenderProvider = new(MockBehavior.Strict); 66Mock<IExtenderProvider> mockExtenderProvider1 = new(MockBehavior.Strict); 67Mock<IExtenderProvider> mockExtenderProvider2 = new(MockBehavior.Strict); 91Mock<IExtenderProvider> mockExtenderProvider = new(MockBehavior.Strict);
System\ComponentModel\Design\SiteNestedContainerTests.cs (19)
306.Setup(s => s.AddExtenderProvider(component as IExtenderProvider)) 309.Setup(s => s.RemoveExtenderProvider(component as IExtenderProvider)); 341mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Exactly(expectedCallCount)); 348mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Exactly(expectedCallCount * 2)); 355mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Exactly(expectedCallCount * 3)); 382.Setup(s => s.AddExtenderProvider(component as IExtenderProvider)) 385.Setup(s => s.RemoveExtenderProvider(component as IExtenderProvider)); 412mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Never()); 429mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Never()); 444mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Never()); 729.Setup(s => s.AddExtenderProvider(component as IExtenderProvider)); 731.Setup(s => s.RemoveExtenderProvider(component as IExtenderProvider)) 760mockExtenderProviderService.Verify(s => s.RemoveExtenderProvider(component as IExtenderProvider), Times.Exactly(expectedRemoveCallCount)); 767mockExtenderProviderService.Verify(s => s.RemoveExtenderProvider(component as IExtenderProvider), Times.Exactly(expectedRemoveCallCount)); 794.Setup(s => s.AddExtenderProvider(component as IExtenderProvider)) 797.Setup(s => s.RemoveExtenderProvider(component as IExtenderProvider)); 818mockExtenderProviderService.Verify(s => s.AddExtenderProvider(component as IExtenderProvider), Times.Never()); 825mockExtenderProviderService.Verify(s => s.RemoveExtenderProvider(component as IExtenderProvider), Times.Never()); 832mockExtenderProviderService.Verify(s => s.RemoveExtenderProvider(component as IExtenderProvider), Times.Never());
System\Windows\Forms\Design\DesignerExtendersTests.cs (2)
20IExtenderProvider[] providers = designerExtenders.TestAccessor().Dynamic._providers; 27extenderServiceMock.Verify(s => s.RemoveExtenderProvider(It.IsAny<IExtenderProvider>()), Times.Exactly(2));
System.Windows.Forms.Tests (4)
System\Windows\Forms\FlowLayoutPanelTests.cs (2)
219IExtenderProvider extenderProvider = control; 236IExtenderProvider extenderProvider = control;
System\Windows\Forms\TableLayoutPanelTests.cs (2)
2118IExtenderProvider extenderProvider = control; 2134IExtenderProvider extenderProvider = control;