58 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)
209AddTab(DefaultTabType, PropertyTabScope.Static); 274RemoveTabs(PropertyTabScope.Document, setupToolbar: true); 300RefreshTabs(PropertyTabScope.Document); 1019RefreshTabs(PropertyTabScope.Component); 1456PropertyTabScope scope, 1577/// Must be <see cref="PropertyTabScope.Component" /> or <see cref="PropertyTabScope.Document"/> 1579internal void ClearTabs(PropertyTabScope tabScope) 1581if (tabScope < PropertyTabScope.Document) 2146private static IEnumerable<Type> GetCommonTabs(object[] components, PropertyTabScope tabScope) 2434if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 2436AddTab(tabAttribute.TabClasses[i], PropertyTabScope.Document, e.Component, setupToolbar: true); 2481if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 3413/// Either <see cref="PropertyTabScope.Component"/> or <see cref="PropertyTabScope.Document"/>. 3417/// The <see cref="RefreshTabs(PropertyTabScope)"/> method first deletes the property tabs of the specified 3421public void RefreshTabs(PropertyTabScope tabScope) 3423if (tabScope < PropertyTabScope.Document) 3431if (tabScope <= PropertyTabScope.Component && _selectedObjects is not null && _selectedObjects.Length > 0) 3434foreach (Type tabType in GetCommonTabs(_selectedObjects, PropertyTabScope.Component)) 3438AddTab(tabType, PropertyTabScope.Component, @object, setupToolbar: false); 3444if (tabScope <= PropertyTabScope.Document 3453if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 3455AddTab(tabAttribute.TabClasses[i], PropertyTabScope.Document, component, setupToolbar: false); 3513if (killTab && _tabs[tabIndex].Scope > PropertyTabScope.Global) 3521/// For example, removing <see cref="PropertyTabScope.Document"/> will remove <see cref="PropertyTabScope.Document"/> 3522/// and <see cref="PropertyTabScope.Component"/> tabs. 3524internal void RemoveTabs(PropertyTabScope classification, bool setupToolbar) 3526if (classification == PropertyTabScope.Static) 3569if (_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.Tests (3)
System\Windows\Forms\PropertyGrid.PropertyTabCollectionTests.cs (3)
87_propertyTabCollection.AddTabType(typeof(TestPropertyTab), PropertyTabScope.Component); 108_propertyTabCollection.AddTabType(typeof(TestPropertyTab), PropertyTabScope.Component); 111_propertyTabCollection.Clear(PropertyTabScope.Component);
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
474_propertyGrid.RefreshTabs(PropertyTabScope.Component);