54 references to PropertyTabScope
netstandard (1)
netstandard.cs (1)
397[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.PropertyTabScope))]
System (1)
src\runtime\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)
213AddTab(DefaultTabType, PropertyTabScope.Static); 278RemoveTabs(PropertyTabScope.Document, setupToolbar: true); 304RefreshTabs(PropertyTabScope.Document); 1064RefreshTabs(PropertyTabScope.Component); 1501PropertyTabScope scope, 1622/// Must be <see cref="PropertyTabScope.Component" /> or <see cref="PropertyTabScope.Document"/> 1624internal void ClearTabs(PropertyTabScope tabScope) 1626if (tabScope < PropertyTabScope.Document) 2197private static IEnumerable<Type> GetCommonTabs(object[] components, PropertyTabScope tabScope) 2485if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 2487AddTab(tabAttribute.TabClasses[i], PropertyTabScope.Document, e.Component, setupToolbar: true); 2532if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 3464/// Either <see cref="PropertyTabScope.Component"/> or <see cref="PropertyTabScope.Document"/>. 3468/// The <see cref="RefreshTabs(PropertyTabScope)"/> method first deletes the property tabs of the specified 3472public void RefreshTabs(PropertyTabScope tabScope) 3474if (tabScope < PropertyTabScope.Document) 3482if (tabScope <= PropertyTabScope.Component && _selectedObjects is not null && _selectedObjects.Length > 0) 3485foreach (Type tabType in GetCommonTabs(_selectedObjects, PropertyTabScope.Component)) 3489AddTab(tabType, PropertyTabScope.Component, @object, setupToolbar: false); 3495if (tabScope <= PropertyTabScope.Document 3504if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 3506AddTab(tabAttribute.TabClasses[i], PropertyTabScope.Document, component, setupToolbar: false); 3564if (killTab && _tabs[tabIndex].Scope > PropertyTabScope.Global) 3572/// For example, removing <see cref="PropertyTabScope.Document"/> will remove <see cref="PropertyTabScope.Document"/> 3573/// and <see cref="PropertyTabScope.Component"/> tabs. 3575internal void RemoveTabs(PropertyTabScope classification, bool setupToolbar) 3577if (classification == PropertyTabScope.Static) 3620if (_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)