55 references to PropertyTabScope
netstandard (1)
netstandard.cs (1)
397[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.PropertyTabScope))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
383[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.PropertyTabScope))]
System.ComponentModel.TypeConverter (17)
System\ComponentModel\Design\PropertyTabAttribute.cs (17)
26TabScopes = Array.Empty<PropertyTabScope>(); 34public PropertyTabAttribute(Type tabClass) : this(tabClass, PropertyTabScope.Component) 45: this(tabClassName, PropertyTabScope.Component) 53public PropertyTabAttribute(Type tabClass, PropertyTabScope tabScope) 56if (tabScope < PropertyTabScope.Document) 60TabScopes = new PropertyTabScope[] { tabScope }; 70PropertyTabScope tabScope) 73if (tabScope < PropertyTabScope.Document) 77TabScopes = new PropertyTabScope[] { tabScope }; 145public PropertyTabScope[] TabScopes { get; private set; } 179protected void InitializeArrays(string[]? tabClassNames, PropertyTabScope[]? tabScopes) 187protected void InitializeArrays(Type[]? tabClasses, PropertyTabScope[]? tabScopes) 192private void InitializeArrays(string[]? tabClassNames, Type[]? tabClasses, PropertyTabScope[]? tabScopes) 220if (tabScopes[i] < PropertyTabScope.Document) 225TabScopes = (PropertyTabScope[])tabScopes.Clone(); 229TabScopes = new PropertyTabScope[tabClasses!.Length]; 233TabScopes[i] = PropertyTabScope.Component;
System.Windows.Forms (35)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (31)
207AddTab(DefaultTabType, PropertyTabScope.Static); 272RemoveTabs(PropertyTabScope.Document, setupToolbar: true); 301RefreshTabs(PropertyTabScope.Document); 1020RefreshTabs(PropertyTabScope.Component); 1460PropertyTabScope scope, 1581/// Must be <see cref="PropertyTabScope.Component" /> or <see cref="PropertyTabScope.Document"/> 1583internal void ClearTabs(PropertyTabScope tabScope) 1585if (tabScope < PropertyTabScope.Document) 2150private static IEnumerable<Type> GetCommonTabs(object[] components, PropertyTabScope tabScope) 2438if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 2440AddTab(tabAttribute.TabClasses[i], PropertyTabScope.Document, e.Component, setupToolbar: true); 2485if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 3417/// Either <see cref="PropertyTabScope.Component"/> or <see cref="PropertyTabScope.Document"/>. 3421/// The <see cref="RefreshTabs(PropertyTabScope)"/> method first deletes the property tabs of the specified 3425public void RefreshTabs(PropertyTabScope tabScope) 3427if (tabScope < PropertyTabScope.Document) 3435if (tabScope <= PropertyTabScope.Component && _selectedObjects is not null && _selectedObjects.Length > 0) 3438foreach (Type tabType in GetCommonTabs(_selectedObjects, PropertyTabScope.Component)) 3442AddTab(tabType, PropertyTabScope.Component, @object, setupToolbar: false); 3448if (tabScope <= PropertyTabScope.Document 3457if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 3459AddTab(tabAttribute.TabClasses[i], PropertyTabScope.Document, component, setupToolbar: false); 3517if (killTab && _tabs[tabIndex].Scope > PropertyTabScope.Global) 3525/// For example, removing <see cref="PropertyTabScope.Document"/> will remove <see cref="PropertyTabScope.Document"/> 3526/// and <see cref="PropertyTabScope.Component"/> tabs. 3528internal void RemoveTabs(PropertyTabScope classification, bool setupToolbar) 3530if (classification == PropertyTabScope.Static) 3573if (_tabs[tabIndex].Scope == PropertyTabScope.Static)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyTabCollection.cs (3)
64_ownerPropertyGrid.AddTab(propertyTabType, PropertyTabScope.Global); 67public void AddTabType(Type propertyTabType, PropertyTabScope tabScope) 81public void Clear(PropertyTabScope tabScope)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.TabInfo.cs (1)
11private record TabInfo(PropertyTab Tab, PropertyTabScope Scope, ToolStripButton Button)
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
474_propertyGrid.RefreshTabs(PropertyTabScope.Component);