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); 298RefreshTabs(PropertyTabScope.Document); 1017RefreshTabs(PropertyTabScope.Component); 1454PropertyTabScope scope, 1575/// Must be <see cref="PropertyTabScope.Component" /> or <see cref="PropertyTabScope.Document"/> 1577internal void ClearTabs(PropertyTabScope tabScope) 1579if (tabScope < PropertyTabScope.Document) 2144private static IEnumerable<Type> GetCommonTabs(object[] components, PropertyTabScope tabScope) 2432if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 2434AddTab(tabAttribute.TabClasses[i], PropertyTabScope.Document, e.Component, setupToolbar: true); 2479if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 3411/// Either <see cref="PropertyTabScope.Component"/> or <see cref="PropertyTabScope.Document"/>. 3415/// The <see cref="RefreshTabs(PropertyTabScope)"/> method first deletes the property tabs of the specified 3419public void RefreshTabs(PropertyTabScope tabScope) 3421if (tabScope < PropertyTabScope.Document) 3429if (tabScope <= PropertyTabScope.Component && _selectedObjects is not null && _selectedObjects.Length > 0) 3432foreach (Type tabType in GetCommonTabs(_selectedObjects, PropertyTabScope.Component)) 3436AddTab(tabType, PropertyTabScope.Component, @object, setupToolbar: false); 3442if (tabScope <= PropertyTabScope.Document 3451if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 3453AddTab(tabAttribute.TabClasses[i], PropertyTabScope.Document, component, setupToolbar: false); 3511if (killTab && _tabs[tabIndex].Scope > PropertyTabScope.Global) 3519/// For example, removing <see cref="PropertyTabScope.Document"/> will remove <see cref="PropertyTabScope.Document"/> 3520/// and <see cref="PropertyTabScope.Component"/> tabs. 3522internal void RemoveTabs(PropertyTabScope classification, bool setupToolbar) 3524if (classification == PropertyTabScope.Static) 3567if (_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);