2 interfaces inheriting from IComponent
System.Windows.Forms (2)
winforms\Managed\System\WinForms\IBindableComponent.cs (1)
15public interface IBindableComponent : IComponent {
winforms\Managed\System\WinForms\Layout\IArrangedElement.cs (1)
16internal interface IArrangedElement : IComponent {
7 implementations of IComponent
System (2)
compmod\system\componentmodel\Component.cs (1)
24public class Component : MarshalByRefObject, IComponent {
compmod\system\componentmodel\MarshalByValueComponent.cs (1)
25public class MarshalByValueComponent : IComponent, IServiceProvider {
System.Web (2)
HttpApplication.cs (1)
69public class HttpApplication : IComponent, IHttpAsyncHandler, IRequestCompletedNotifier, ISyncContext {
UI\Control.cs (1)
49public class Control : IComponent, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor {
System.Web.Mobile (1)
UI\MobileControls\Design\PropertyOverridesDialog.cs (1)
625ICustomTypeDescriptor, IDeviceSpecificChoiceDesigner, IComponent
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
27public class DataGridViewColumn : DataGridViewBand, IComponent
System.Workflow.ComponentModel (1)
AuthoringOM\DependencyObject.cs (1)
21public abstract class DependencyObject : IComponent, IDependencyObjectAccessor, IDisposable
389 references to IComponent
System (85)
compmod\system\componentmodel\Component.cs (1)
16/// <see cref='System.ComponentModel.IComponent'/>
compmod\system\componentmodel\ComponentCollection.cs (6)
45public ComponentCollection(IComponent[] components) { 56public virtual IComponent this[string name] { 60foreach(IComponent comp in list) { 77public virtual IComponent this[int index] { 79return (IComponent)InnerList[index]; 86public void CopyTo(IComponent[] array, int index) {
compmod\system\componentmodel\ComponentResourceManager.cs (2)
112if (value is IComponent) { 113ISite site = ((IComponent)value).Site;
compmod\system\componentmodel\Container.cs (13)
44public virtual void Add(IComponent component) { 55public virtual void Add(IComponent component, String name) { 96/// <para>Creates a Site <see cref='System.ComponentModel.ISite'/> for the given <see cref='System.ComponentModel.IComponent'/> 99protected virtual ISite CreateSite(IComponent component, string name) { 166IComponent[] result = new IComponent[siteCount]; 204public virtual void Remove(IComponent component) { 208private void Remove(IComponent component, bool preserveSite) { 229protected void RemoveWithoutUnsiting(IComponent component) { 238protected virtual void ValidateName(IComponent component, string name) { 262private IComponent component; 266internal Site(IComponent component, Container container, String name) { 273public IComponent Component {
compmod\system\componentmodel\design\ComponentEvent.cs (3)
26private IComponent component; 33public virtual IComponent Component { 44public ComponentEventArgs(IComponent component) {
compmod\system\componentmodel\design\IDesigner.cs (2)
26IComponent Component {get;} 45void Initialize(IComponent component);
compmod\system\componentmodel\design\IDesignerHost.cs (5)
50IComponent RootComponent { get; } 123IComponent CreateComponent(Type componentClass); 130IComponent CreateComponent(Type componentClass, string name); 161void DestroyComponent(IComponent component); 168IDesigner GetDesigner(IComponent component);
compmod\system\componentmodel\design\IEventPropertyService.cs (2)
24string CreateUniqueMethodName(IComponent component, EventDescriptor e); 66bool ShowCode(IComponent component, EventDescriptor e);
compmod\system\componentmodel\design\IInheritanceService.cs (2)
27void AddInheritedComponents(IComponent component, IContainer container); 37InheritanceAttribute GetInheritanceAttribute(IComponent component);
compmod\system\componentmodel\design\IReferenceService.cs (1)
26IComponent GetComponent(object reference);
compmod\system\componentmodel\design\ITypeDescriptorFilterService.cs (3)
29bool FilterAttributes(IComponent component, IDictionary attributes); 36bool FilterEvents(IComponent component, IDictionary events); 43bool FilterProperties(IComponent component, IDictionary properties);
compmod\system\componentmodel\IComponent.cs (1)
45/// with the <see cref='System.ComponentModel.IComponent'/>.</para>
compmod\system\componentmodel\IContainer.cs (5)
27/// <para>Adds the specified <see cref='System.ComponentModel.IComponent'/> to the <see cref='System.ComponentModel.IContainer'/> 30void Add(IComponent component); 34/// <para>Adds the specified <see cref='System.ComponentModel.IComponent'/> to the <see cref='System.ComponentModel.IContainer'/> 37void Add(IComponent component, String name); 49void Remove(IComponent component);
compmod\system\componentmodel\INestedContainer.cs (1)
22IComponent Owner { get; }
compmod\system\componentmodel\ISite.cs (1)
33IComponent Component {get;}
compmod\system\componentmodel\MarshalByValueComponent.cs (1)
16/// <para>Provides the base implementation for <see cref='System.ComponentModel.IComponent'/>,
compmod\system\componentmodel\MemberDescriptor.cs (2)
482if (!(component is IComponent)) { 486return((IComponent)component).Site;
compmod\system\componentmodel\NestedContainer.cs (8)
25private IComponent _owner; 30public NestedContainer(IComponent owner) { 41public IComponent Owner { 73protected override ISite CreateSite(IComponent component, string name) { 115private IComponent component; 119internal Site(IComponent component, NestedContainer container, string name) { 126public IComponent Component { 147IComponent owner = container.Owner;
compmod\system\componentmodel\ReferenceConverter.cs (4)
115if (!Marshal.IsComObject(value) && value is IComponent) { 116IComponent comp = (IComponent)value; 167foreach(IComponent obj in objs) {
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (2)
943IComponent comp = component as IComponent;
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (10)
258IComponent comp = instance as IComponent; 574IComponent component = instance as IComponent; 763IComponent comp = component as IComponent; 1181IComponent comp = provider as IComponent; 1593IComponent comp = instance as IComponent;
compmod\system\componentmodel\TypeDescriptor.cs (7)
575public static IDesigner CreateDesigner(IComponent component, Type designerBaseType) 1333IComponent component = primary as IComponent; 1899IComponent component = prov as IComponent; 2494IComponent component = instance as IComponent;
sys\system\configuration\ApplicationSettingsBase.cs (3)
33private IComponent _owner; 57protected ApplicationSettingsBase(IComponent owner) : this(owner, String.Empty) { 71protected ApplicationSettingsBase(IComponent owner, string settingsKey) : this(settingsKey) {
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolCreatedEventArgs.cs (3)
17IComponent[] components; 19internal ToolCreatedEventArgs(RoutedEvent eventName, object sender, IComponent[] components) 28public IComponent[] Components
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolCreatedEventArgs.cs (3)
17IComponent[] components; 19internal ToolCreatedEventArgs(RoutedEvent eventName, object sender, IComponent[] components) 28public IComponent[] Components
System.Drawing (15)
commonui\System\Drawing\Design\ToolboxComponentsCreatedEventArgs.cs (4)
20private readonly IComponent[] comps; 28public ToolboxComponentsCreatedEventArgs(IComponent[] components) { 38public IComponent[] Components { 40return (IComponent[])comps.Clone();
commonui\System\Drawing\Design\ToolboxItem.cs (11)
329public IComponent[] CreateComponents() { 338public IComponent[] CreateComponents(IDesignerHost host) { 340IComponent[] comps = CreateComponentsCore(host, new Hashtable()); 352public IComponent[] CreateComponents(IDesignerHost host, IDictionary defaultValues) { 354IComponent[] comps = CreateComponentsCore(host, defaultValues); 366protected virtual IComponent[] CreateComponentsCore(IDesignerHost host) { 374else if (typeof(IComponent).IsAssignableFrom(createType)) { 379IComponent[] temp = new IComponent[comps.Count]; 389protected virtual IComponent[] CreateComponentsCore(IDesignerHost host, IDictionary defaultValues) { 390IComponent[] components = CreateComponentsCore(host);
System.Messaging (3)
System\Messaging\Design\QueuePathEditor.cs (1)
75context.Container.Add((IComponent)value);
System\Messaging\MessageQueueInstaller.cs (2)
364public override void CopyFromComponent(IComponent component) 370private void InternalCopyFromComponent(IComponent component)
System.Web (4)
UI\ClientScriptManager.cs (1)
547ISite site = ((IComponent)owner).Site;
UI\ControlIdConverter.cs (3)
38IComponent component = instance as IComponent; 50foreach (IComponent comp in (IEnumerable)allComponents) {
System.Web.DataVisualization (1)
Common\Converters\DataManagerConverters.cs (1)
157 foreach(IComponent comonent in context.Container.Components)
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceDesigner.cs (1)
24public override void Initialize(IComponent component)
System\Data\WebControls\Design\EntityDataSourceStatementEditor.cs (1)
46(IComponent)context.Instance,
System.Web.Mobile (60)
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (5)
46internal static IDesigner ControlDesigner(IComponent component) 88internal static IComponent GetRootComponent(IComponent component) 119internal static bool InUserControl(IComponent component) 124internal static bool InMobileUserControl(IComponent component)
UI\MobileControls\Design\AdRotatorDesigner.cs (1)
33public override void Initialize(IComponent component)
UI\MobileControls\Design\BaseTemplatedMobileComponentEditor.cs (3)
62Debug.Assert(obj is IComponent, "Expected obj to be an IComponent"); 63IComponent comp = (IComponent)obj;
UI\MobileControls\Design\BaseValidatorDesigner.cs (1)
51public override void Initialize(IComponent component)
UI\MobileControls\Design\CalendarDesigner.cs (1)
51public override void Initialize(IComponent component)
UI\MobileControls\Design\CommandDesigner.cs (1)
49public override void Initialize(IComponent component)
UI\MobileControls\Design\Converters\DataFieldConverter.cs (3)
105IComponent component = context.Instance as IComponent; 228if (context.Instance is IComponent)
UI\MobileControls\Design\Converters\DataMemberConverter.cs (3)
94IComponent component = context.Instance as IComponent; 154if (context.Instance is IComponent)
UI\MobileControls\Design\Converters\DefaultCommandConverter.cs (1)
130if (context.Instance is IComponent)
UI\MobileControls\Design\Converters\FormConverter.cs (1)
136foreach(IComponent component in container.Components)
UI\MobileControls\Design\Converters\NavigateUrlConverter.cs (1)
50internal static String GetUrl(IComponent component, String url, String oldUrl)
UI\MobileControls\Design\Converters\ValidatedMobileControlConverter.cs (1)
98foreach(IComponent component in container.Components)
UI\MobileControls\Design\DeviceSpecificDesigner.cs (3)
124IDesigner designer = host.GetDesigner((IComponent) newDS); 140public override void Initialize(IComponent component) 292IDesigner designer = host.GetDesigner((IComponent) _parentContainer.DeviceSpecific);
UI\MobileControls\Design\FormDesigner.cs (1)
136public override void Initialize(IComponent component)
UI\MobileControls\Design\ImageDesigner.cs (1)
70public override void Initialize(IComponent component)
UI\MobileControls\Design\ItemCollectionEditor.cs (1)
57IDesigner designer = designerHost.GetDesigner((IComponent)obj);
UI\MobileControls\Design\LabelDesigner.cs (1)
52public override void Initialize(IComponent component)
UI\MobileControls\Design\LinkDesigner.cs (1)
52public override void Initialize(IComponent component)
UI\MobileControls\Design\ListComponentEditorPage.cs (1)
115public override sealed void SetComponent(IComponent component)
UI\MobileControls\Design\ListDesigner.cs (1)
487public override void Initialize(IComponent component)
UI\MobileControls\Design\ListGeneralPage.cs (1)
402public override void SetComponent(IComponent component)
UI\MobileControls\Design\MobileComponentEditorPage.cs (2)
55IComponent selectedComponent = GetSelectedComponent(); 87IComponent selectedComponent = GetSelectedComponent();
UI\MobileControls\Design\MobileContainerDesigner.cs (1)
267public override void Initialize(IComponent component)
UI\MobileControls\Design\MobileControlDesigner.cs (1)
440public override void Initialize(IComponent component)
UI\MobileControls\Design\MobileControlPersister.cs (2)
821IComponent baseComponent = (IComponent)control.Page;
UI\MobileControls\Design\MobileTemplatedControlDesigner.cs (1)
677public override void Initialize(IComponent component)
UI\MobileControls\Design\ObjectListDesigner.cs (1)
75public override void Initialize(IComponent component)
UI\MobileControls\Design\ObjectListGeneralPage.cs (1)
237public override void SetComponent(IComponent component)
UI\MobileControls\Design\PanelDesigner.cs (1)
106public override void Initialize(IComponent component)
UI\MobileControls\Design\PhoneCallDesigner.cs (1)
53public override void Initialize(IComponent component)
UI\MobileControls\Design\PropertyOverridesDialog.cs (6)
352ISite componentSite = ((IComponent)(_designer.UnderlyingControl)).Site; 708if(clone is IComponent) 710((IComponent)clone).Site = ((IComponent)target).Site; 852IComponent component = (IComponent) sender;
UI\MobileControls\Design\SelectionListDesigner.cs (1)
384public override void Initialize(IComponent component)
UI\MobileControls\Design\StyleSheetDesigner.cs (5)
112IComponent component = DesignerAdapterUtil.GetRootComponent(Component); 125IComponent component = DesignerAdapterUtil.GetRootComponent(Component); 145public override void Initialize(IComponent component) 269designer = Host.GetDesigner((IComponent) control); 406IDesigner designer = Host.GetDesigner((IComponent) MobilePage.StyleSheet);
UI\MobileControls\Design\TemplatingOptionsDialog.cs (1)
253foreach (IComponent component in allComponents)
UI\MobileControls\Design\TextBoxDesigner.cs (1)
50public override void Initialize(IComponent component)
UI\MobileControls\Design\TextViewDesigner.cs (1)
46public override void Initialize(IComponent component)
UI\MobileControls\Design\ValidationSummaryDesigner.cs (1)
50public override void Initialize(IComponent component)
System.Windows.Forms (78)
winforms\Managed\System\WinForms\AxHost.cs (1)
5572foreach (IComponent comp in comps) {
winforms\Managed\System\WinForms\Binding.cs (2)
584IComponent comp = (this.control as IComponent);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
130return TypeDescriptor.GetConverter(typeof(IComponent));
winforms\Managed\System\WinForms\Control.cs (3)
18832private IComponent component; 18838internal AxSourcingSite(IComponent component, UnsafeNativeMethods.IOleClientSite clientSite, string name) { 18845public IComponent Component {
winforms\Managed\System\WinForms\DataGrid.cs (1)
8949private void ObjectSiteChange(IContainer container, IComponent component, bool site) {
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (4)
2715IComponent component = this.DataSource as IComponent; 2736IComponent component = dataSource as IComponent;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (5)
35private IComponent component; 69if (!(component is IComponent)) { 72this.component = (IComponent)component; 531internal IComponent component; 543internal ComponentEditorPageSite(Control parent, Type pageClass, IComponent component, ComponentEditorForm form) {
winforms\Managed\System\WinForms\Design\ComponentEditorPage.cs (4)
38IComponent component; 106protected IComponent Component { 254protected IComponent GetSelectedComponent() { 329public virtual void SetComponent(IComponent component) {
winforms\Managed\System\WinForms\Design\EventsTab.cs (2)
111if (eventPropertySvc == null && obj is IComponent){ 112ISite site = ((IComponent)obj).Site;
winforms\Managed\System\WinForms\Design\WinFormsComponentEditor.cs (1)
22/// of <see cref='System.ComponentModel.IComponent'/>
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
128IComponent baseComp = host.RootComponent;
winforms\Managed\System\WinForms\LayoutEvent.cs (4)
15private readonly IComponent affectedComponent; 19public LayoutEventArgs(IComponent affectedComponent, string affectedProperty) { 27: this((IComponent)affectedControl, affectedProperty) { 31public IComponent AffectedComponent {
winforms\Managed\System\WinForms\ListControl.cs (4)
825if (this.dataSource is IComponent) { 826((IComponent) this.dataSource).Disposed -= new EventHandler(DataSourceDisposed); 843if (this.dataSource is IComponent) { 844((IComponent) this.dataSource).Disposed += new EventHandler(DataSourceDisposed);
winforms\Managed\System\WinForms\PropertyGrid.cs (15)
1314showEvents = showEvents && (tempObj is IComponent && ((IComponent)tempObj).Site != null); 1862if (component != null && component is IComponent && ((IComponent) component).Site != null) 1863host = (IDesignerHost) ((IComponent) component).Site.GetService(typeof(IDesignerHost)); 2126IComponent component = null; 2136if (obj is IComponent) { 2137component = (IComponent)obj; 2162if (currentObjects.Length == 1 && GetUnwrappedObject(0) is IComponent) { 3423IComponent currentSelection = SelectedObject as IComponent; 3570if (baseObject is IComponent && 3573ISite site = ((IComponent)baseObject).Site; 3958foreach (IComponent comp in components) { 5226public SelectedObjectConverter() : base(typeof(IComponent)) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (7)
267public virtual IComponent Component { 270if (owner is IComponent) { 271return(IComponent) owner; 297IComponent component = Component; 1389public virtual IComponent[] GetComponents() { 1390IComponent component = Component; 1392return new IComponent[] { component};
winforms\Managed\System\WinForms\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (7)
38IComponent comp = o as IComponent; 137public override IComponent[] GetComponents() { 138IComponent[] temp = new IComponent[objs.Length]; 251bool needChangeNotify = !(objects[0] is IComponent) || ((IComponent)objects[0]).Site == null;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (6)
56static IComponent targetComponent; 660bool needChangeNotify = !(obj is IComponent) || ((IComponent)obj).Site == null; 888IComponent component = obj as IComponent; 896component = objArray.GetValue(0) as IComponent;
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (2)
202if (objValue is IComponent) { 203ISite site = ((IComponent)objValue).Site;
winforms\Managed\System\WinForms\ToolStripControlHost.cs (5)
1108IComponent comp = null; 1109IComponent owner = null; 1113comp = control as IComponent; 1114owner = host as IComponent; 1120IComponent ISite.Component {
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
1212IComponent comp = host.RootComponent;
winforms\Managed\System\WinForms\WebBrowserContainer.cs (1)
220foreach (IComponent comp in comps) {
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
368public static string GetComponentName(IComponent component, string defaultNameValue) {
System.Windows.Forms.DataVisualization (1)
Common\Converters\DataManagerConverters.cs (1)
157 foreach(IComponent comonent in context.Container.Components)
System.Workflow.Activities (43)
Common\BasePropertyDescriptor.cs (8)
40if ((component is IComponent) && ((IComponent)component).Site != null) 41site = ((IComponent)component).Site; 43if (site == null && component.GetType().IsArray && (component as object[]).Length > 0 && (component as object[])[0] is IComponent) 44site = ((IComponent)(component as object[])[0]).Site; 51IComponent baseComponent = referenceService.GetComponent(component); 64internal static IComponent GetComponent(ITypeDescriptorContext context) 292if (component is IComponent)
Common\CompModHelpers.cs (10)
297Queue<IComponent> serializedComponents = new Queue<IComponent>(); 298foreach (IComponent activity in activities) 303IComponent component = serializedComponents.Dequeue(); 321foreach (IComponent childActivity in compositeActivity.Activities) 346Queue<IComponent> serializedComponents = new Queue<IComponent>(); 347foreach (IComponent component in activities) 352IComponent component = serializedComponents.Dequeue(); 370foreach (IComponent childActivity in compositeActivity.Activities)
Designers\ConditionalDesigner.cs (3)
31protected override IComponent[] CreateComponentsCore(IDesignerHost designerHost) 36return (IComponent[])new IComponent[] { conditionalActivity };
Designers\InvokeWebServiceDesigner.cs (2)
41public override IComponent[] CreateComponentsWithUI(IDesignerHost host) 49IComponent[] components = base.CreateComponentsWithUI(host);
Designers\ListenDesigner.cs (3)
31protected override IComponent[] CreateComponentsCore(IDesignerHost designerHost) 36return (IComponent[])new IComponent[] { listenActivity };
Designers\ParallelDesigner.cs (3)
31protected override IComponent[] CreateComponentsCore(IDesignerHost designerHost) 36return (IComponent[])new IComponent[] { parallelActivity };
EventSinkActivity.cs (2)
446if (((IComponent)this).Site == null) 449ITypeProvider typeProvider = (ITypeProvider)((IComponent)this).Site.GetService(typeof(ITypeProvider));
InvokeMethodActivity.cs (2)
251if (((IComponent)this).Site == null) 254ITypeProvider typeProvider = (ITypeProvider)((IComponent)this).Site.GetService(typeof(ITypeProvider));
InvokeSchedule.cs (1)
132IDesignerHost designerHost = ((IComponent)this).Site.GetService(typeof(IDesignerHost)) as IDesignerHost;
InvokeWebService.cs (2)
382if (((IComponent)this).Site == null) 385ITypeProvider typeProvider = (ITypeProvider)((IComponent)this).Site.GetService(typeof(ITypeProvider));
Rules\Design\Dialogs\BasicBrowserDialog.cs (2)
290ISite site = ((IComponent)this.activity).Site; 312ISite site = ((IComponent)this.activity).Site;
Rules\Design\LogicalExpressionTypeConverter.cs (1)
171IComponent component = PropertyDescriptorUtils.GetComponent(context);
WebServiceReceive.cs (2)
443if (((IComponent)this).Site == null) 446ITypeProvider typeProvider = (ITypeProvider)((IComponent)this).Site.GetService(typeof(ITypeProvider));
WebServiceResponse.cs (2)
249if (((IComponent)this).Site == null) 252ITypeProvider typeProvider = (ITypeProvider)((IComponent)this).Site.GetService(typeof(ITypeProvider));
System.Workflow.ComponentModel (84)
AuthoringOM\Activity.cs (5)
2371if (((IComponent)this).Site != null) 2373IComponentChangeService changeService = ((IComponent)this).Site.GetService(typeof(IComponentChangeService)) as IComponentChangeService; 2415activity.Name = DesignerHelpers.GenerateUniqueIdentifier(((IComponent)this).Site, Helpers.GetBaseIdentifier(activity), (string[])identifiers.ToArray(typeof(string))); 2427if (((IComponent)this).Site != null) 2429IComponentChangeService changeService = ((IComponent)this).Site.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
AuthoringOM\DependencyObject.cs (1)
665event EventHandler IComponent.Disposed
AuthoringOM\Design\ActivityDesigner.cs (4)
640foreach (IComponent component in designerHost.Container.Components) 2287IComponent IDesigner.Component 2291return this.activity as IComponent; 2313void IDesigner.Initialize(IComponent component)
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (1)
62foreach (IComponent component in host.Container.Components)
AuthoringOM\Design\CommandSet.cs (3)
636IComponent selectedComponent = this.selectionService.PrimarySelection as IComponent; 714IComponent rootComponent = (designerHost != null) ? designerHost.RootComponent : null;
AuthoringOM\Design\ComponentSerializationService.cs (5)
249bool needChangeEvent = (componentChangeService != null) && (!(obj is IComponent) || (((IComponent)obj).Site == null)); 545private IComponent GetComponent(object obj, IServiceProvider serviceProvider) 547IComponent component = obj as IComponent;
AuthoringOM\Design\CompositeActivityDesigner.cs (2)
456moveCase = ((IComponent)activity).Site != null; 772designerToInsert = (designerHost != null) ? designerHost.GetDesigner((IComponent)activity) as ActivityDesigner : null;
AuthoringOM\Design\CustomActivityDesigner.cs (2)
165IComponent[] components = item.CreateComponents(); 171foreach (IComponent component in components)
AuthoringOM\Design\DesignerHelpers.cs (6)
1259foreach (IComponent component in designerHost.Container.Components) 1368((IComponent)activity).Site.Name = name; 1379((IComponent)childActivity).Site.Name = ((IComponent)declaringActivity).Site.Name + "." + childActivity.Name; //the parent should have already been updated by now 1573internal static string CreateUniqueMethodName(IComponent component, string propName, Type delegateType) 1595ISite site = ((IComponent)component).Site;
AuthoringOM\Design\DesignerWidgets.cs (1)
3520IComponent component = (PreviewDesigner != null) ? PreviewDesigner.Activity : null;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (6)
987IComponent previewActivity = null; 1006IComponent[] components = null; 1016components = new IComponent[] { Activator.CreateInstance(activityType) as IComponent }; 1044selectionService.SetSelectedComponents(new IComponent[] { rootDecl }); 1119protected override IDesigner CreateDesigner(IComponent component, bool rootDesigner)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (2)
1272IComponent System.ComponentModel.ISite.Component 1592public IComponent Component { get { return null; } }
AuthoringOM\Design\FreeFormDesigner.cs (1)
243if (Activity != null && ((IComponent)Activity).Site != null && !(ParentDesigner is FreeformActivityDesigner))
AuthoringOM\Design\IdentifierCreationService.cs (1)
126if (((IComponent)activity).Site != null)
AuthoringOM\Design\ReferenceService.cs (12)
30private void CreateReferences(IComponent component) 35private void CreateReferences(string trailingName, object reference, IComponent sitedComponent) 97foreach (IComponent component in container.Components) 110foreach (IComponent ic in clonedAddedComponents) 121foreach (IComponent ic in clonedRemovedComponents) 129foreach (IComponent ic in clonedChangedComponents) 141IComponent comp = ((IReferenceService)this).GetComponent(cevent.Component); 202private void RemoveReferences(IComponent component) 241IComponent IReferenceService.GetComponent(object reference) 320private IComponent sitedComponent; 323internal ReferenceHolder(string trailingName, object reference, IComponent sitedComponent) 382internal IComponent SitedComponent
AuthoringOM\Design\TypeConverters.cs (1)
136IComponent component = PropertyDescriptorUtils.GetComponent(context);
AuthoringOM\Design\UITypeEditors.cs (1)
72IComponent baseComponent = rs.GetComponent(typeDescriptorContext.Instance);
AuthoringOM\Design\WinOEToolBoxItem.cs (5)
53public virtual IComponent[] CreateComponentsWithUI(IDesignerHost host) 60protected override IComponent[] CreateComponentsCore(IDesignerHost host) 86if (typeof(IComponent).IsAssignableFrom(typeOfComponent)) 90IComponent[] temp = new IComponent[comps.Count];
AuthoringOM\Design\WorkflowInlining.cs (1)
241protected override IDesigner CreateDesigner(IComponent component, bool rootDesigner)
AuthoringOM\Design\XomlDesignerLoader.cs (2)
153void AddTargetFrameworkProvider(IComponent component) 874IComponent component = null;
AuthoringOM\Serializer\ActivityCodeDomReferenceService.cs (1)
57public System.ComponentModel.IComponent GetComponent(object reference)
Shared\BasePropertyDescriptor.cs (8)
39if ((component is IComponent) && ((IComponent)component).Site != null) 40site = ((IComponent)component).Site; 42if (site == null && component.GetType().IsArray && (component as object[]).Length > 0 && (component as object[])[0] is IComponent) 43site = ((IComponent)(component as object[])[0]).Site; 50IComponent baseComponent = referenceService.GetComponent(component); 63internal static IComponent GetComponent(ITypeDescriptorContext context) 291if (component is IComponent)
Shared\CompModHelpers.cs (10)
295Queue<IComponent> serializedComponents = new Queue<IComponent>(); 296foreach (IComponent activity in activities) 301IComponent component = serializedComponents.Dequeue(); 319foreach (IComponent childActivity in compositeActivity.Activities) 344Queue<IComponent> serializedComponents = new Queue<IComponent>(); 345foreach (IComponent component in activities) 350IComponent component = serializedComponents.Dequeue(); 368foreach (IComponent childActivity in compositeActivity.Activities)
Shared\XomlSerializationHelpers.cs (3)
265((IComponent)nestedActivity).Site = dummySite; 266((IComponent)rootActivity).Site = dummySite; 470public IComponent Component { get { return null; } }
System.WorkflowServices (7)
System\Workflow\Activities\ReceiveActivity.cs (4)
667Type contractType = serviceOperationInfo.GetContractType(((IComponent)this).Site); 703MethodInfo methodInfo = serviceOperationInfo.GetMethodInfo(((IComponent)this).Site); 779if (((IComponent)this).Site == null) 787MethodInfo methodInfo = serviceOperationInfo.GetMethodInfo(((IComponent)this).Site);
System\Workflow\Activities\SendActivity.cs (2)
458if (((IComponent) this).Site == null) 466MethodInfo methodInfo = serviceOperationInfo.GetMethodInfo(((IComponent) this).Site);
System\Workflow\ComponentModel\Design\FindSimilarActivitiesVerb.cs (1)
50return designerHost.GetDesigner(activity as IComponent) as ActivityDesigner;