7 implementations of Name
System.ComponentModel.TypeConverter (2)
System\ComponentModel\Container.cs (1)
279public string? Name
System\ComponentModel\NestedContainer.cs (1)
161public string? Name
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\Control.AxSourcingSite.cs (1)
61public string? Name
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (1)
50string? ISite.Name
System.Windows.Forms.Design (3)
System\ComponentModel\Design\CollectionEditor.PropertyGridSite.cs (1)
25public string? Name
System\ComponentModel\Design\DesignerHost.Site.cs (1)
220string? ISite.Name
System\Windows\Forms\Design\DataGridViewComponentPropertyGridSite.cs (1)
37public string? Name { get; set; }
7 writes to Name
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
287Site?.Name = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (1)
57_owner.Site?.Name = value;
System.Windows.Forms.Design (5)
System\ComponentModel\Design\DesignerHost.cs (1)
212existingSite.Name = name;
System\ComponentModel\Design\UndoEngine.UndoUnit.RenameUndoEvent.cs (1)
33comp.Site!.Name = _before;
System\Windows\Forms\Design\ControlDesigner.cs (1)
167Component.Site.Name = value;
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (1)
85Component.Site.Name = value;
System\Windows\Forms\Design\DesignerExtenders.NameExtenderProvider.cs (1)
94site?.Name = newName;
91 references to Name
System.ComponentModel.Primitives (3)
System\ComponentModel\Component.cs (1)
130return s.Name + " [" + GetType().FullName + "]";
System\ComponentModel\ComponentCollection.cs (2)
25if (comp != null && comp.Site != null && comp.Site.Name != null && string.Equals(comp.Site.Name, name, StringComparison.OrdinalIgnoreCase))
System.ComponentModel.TypeConverter (10)
System\ComponentModel\Container.cs (2)
232if (s?.Name != null && string.Equals(s.Name, name, StringComparison.OrdinalIgnoreCase) && s.Component != component)
System\ComponentModel\ExtendedPropertyDescriptor.cs (1)
99string? providerName = site?.Name;
System\ComponentModel\MarshalByValueComponent.cs (1)
165return s.Name + " [" + GetType().FullName + "]";
System\ComponentModel\NestedContainer.cs (1)
53ownerName = Owner.Site.Name;
System\ComponentModel\ReferenceConverter.cs (1)
104string? name = site?.Name;
System\ComponentModel\ReflectPropertyDescriptor.cs (2)
926if (site?.Name != null) 928name = site.Name;
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
167return (nestedSite?.FullName) ?? site.Name;
System\ComponentModel\TypeDescriptor.cs (1)
1291name = component.Site.Name;
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
121string? name = control.Site is { } site ? site.Name : control.Name;
System\Windows\Forms\Control.cs (2)
2686name = Site.Name; 11301MarshalStringToMessage(Site?.Name ?? Name ?? string.Empty, ref m);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
641if (Site is not null && !string.IsNullOrEmpty(Site.Name)) 643_name = Site.Name;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
846string componentName = component.Site?.Name ?? component.GetType().Name;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
168return component.Site?.Name ?? Target.GetType().Name;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (1)
52get => _owner.Site?.Name;
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
352=> ctl.Site is not null ? ctl.Site.Name ?? string.Empty : ctl.Name ?? string.Empty;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
226caption = string.Format(SR.ComponentEditorFormProperties, site.Name);
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
323return component.Site?.Name ?? string.Empty;
System.Windows.Forms.Design (67)
System\ComponentModel\Design\ComponentDesigner.cs (5)
48defaultProperty.SetValue(_component, site.Name); 187/// to <see cref="ISite.Name"/> on creation. The default is <see langword="true"/>. 506settingsKeyName = $"{rootComponent.Site!.Name}.{Component.Site.Name}"; 510settingsKeyName = Component.Site.Name;
System\ComponentModel\Design\DesignerHost.cs (4)
255_rootComponentClassName ??= component.Site!.Name; 991string name = component.Site?.Name ?? component.GetType().Name; 1052_rootComponentClassName = _rootComponent.Site.Name; 1166if (item is IComponent component && component.Site?.Name is string name)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
215transaction = host.CreateTransaction(string.Format(SR.EventBindingServiceSetValue, site.Name, name));
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (2)
297if (!string.IsNullOrEmpty(site?.Name)) 299return site.Name;
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
715string? name = e.Component!.Site!.Name;
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (1)
142string? compName = site.Name;
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersInheritedExtenderProvider.cs (1)
82string? name = site?.Name;
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
840return site is null ? null : site is INestedSite nestedSite ? nestedSite.FullName : site.Name;
System\ComponentModel\Design\SiteNestedContainer.cs (1)
149string? childName = ((ISite)this).Name;
System\ComponentModel\Design\UndoEngine.cs (1)
266componentName = site.Name;
System\ComponentModel\Design\UndoEngine.UndoUnit.AddRemoveUndoEvent.cs (1)
28_componentName = component.Site!.Name;
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
40selectedNames[site.Name!] = site.Container!;
System\Windows\Forms\Design\BaseContextMenuStrip.cs (2)
277else if (!string.IsNullOrEmpty(site.Name)) 279compName = site.Name;
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
119_resizeTransaction = host.CreateTransaction(string.Format(SR.TableLayoutPanelRowColResize, (isColumn ? "Column" : "Row"), _designer.Control.Site.Name));
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
107item.Name = item?.Site?.Name;
System\Windows\Forms\Design\CommandSet.cs (2)
779: host.CreateTransaction(string.Format(SR.DragDropMoveComponent, comp.Site?.Name)); 3159string? name = comp.Site?.Name;
System\Windows\Forms\Design\ComponentTray.cs (1)
1920name = site.Name;
System\Windows\Forms\Design\ControlCommandSet.cs (1)
601trans = host.CreateTransaction(string.Format(SR.DragDropSizeComponent, comp.Site.Name));
System\Windows\Forms\Design\ControlDesigner.cs (3)
160get => Component.Site?.Name; 1159textProp.SetValue(Component, site.Name); 1219textProp.SetValue(Component, site.Name);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
1131_columnsNames[col] = liveCol.Site.Name; 1181if (s is not null && s.Name is not null && string.Equals(s.Name, siteName, StringComparison.OrdinalIgnoreCase) && s.Component != component)
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (1)
27return col.Site is not null ? col.Site.Name : col.Name;
System\Windows\Forms\Design\DesignBindingPicker.cs (4)
528_instancesNode = new InstancesNode(_designerHost?.RootComponent.Site.Name); 680DataSourceNode dataSourceNode = new(this, dataSource, dataSource.Site?.Name); 1371if (site is not null && !string.IsNullOrEmpty(site.Name)) 1373return site.Name;
System\Windows\Forms\Design\DesignBindingValueUIHandler.LocalUIItem.cs (1)
28name = site.Name ?? string.Empty;
System\Windows\Forms\Design\DesignerExtenders.NameExtenderProvider.cs (1)
81return site.Name;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
749name = comp.Site?.Name;
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
621name = childSite.Name; 1276ReParentControls(Control, selectedControls, string.Format(SR.ParentControlDesignerLassoShortcutRedo, Control.Site.Name), host);
System\Windows\Forms\Design\SelectionUIService.cs (3)
263name = site.Name; 287name = site.Name; 1123trans = _host.CreateTransaction(string.Format(SR.DragDropMoveComponent, comp.Site!.Name));
System\Windows\Forms\Design\TabControlDesigner.cs (3)
233t = host.CreateTransaction(string.Format(SR.TabControlAddTab, Component.Site.Name)); 328t = host.CreateTransaction(string.Format(SR.TabControlRemoveTab, ((IComponent)tp).Site.Name, Component.Site.Name));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (8)
505trans = host.CreateTransaction(string.Format(SR.BehaviorServiceCopyControl, control.Site.Name)); 524trans = host.CreateTransaction(string.Format(SR.TableLayoutPanelDesignerControlsSwapped, control.Site.Name, existingControl.Site.Name)); 552trans = host.CreateTransaction(string.Format(SR.BehaviorServiceMoveControl, control.Site.Name)); 1627: SR.TableLayoutPanelDesignerAddColumnUndoUnit, Table.Site.Name)); 1742Table.Site.Name)); 1865Table.Site.Name)); 1960using DesignerTransaction t = host.CreateTransaction(string.Format(SR.TableLayoutPanelDesignerChangeSizeTypeUndoUnit, Table.Site.Name));
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
141Text = $"{_originalText} ({itemInstance.Site.Name}.{Context.PropertyDescriptor.Name})"; 674itemText = (item.Site is not null) ? item.Site.Name : itemType.Name; 886string itemName = selectedItem.Site?.Name ?? string.Empty;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (4)
171ShadowProperties[SettingsKeyName] = $"{rootComponent.Site.Name}.{Component.Site.Name}"; 175ShadowProperties[SettingsKeyName] = Component.Site.Name; 385Name = Component.Site.Name
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
661defaultValues["Text"] = site.Name; 670pd.SetValue(component, site.Name);