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) 2190private static IEnumerable<Type> GetCommonTabs(object[] components, PropertyTabScope tabScope) 2478if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 2480AddTab(tabAttribute.TabClasses[i], PropertyTabScope.Document, e.Component, setupToolbar: true); 2525if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 3457/// Either <see cref="PropertyTabScope.Component"/> or <see cref="PropertyTabScope.Document"/>. 3461/// The <see cref="RefreshTabs(PropertyTabScope)"/> method first deletes the property tabs of the specified 3465public void RefreshTabs(PropertyTabScope tabScope) 3467if (tabScope < PropertyTabScope.Document) 3475if (tabScope <= PropertyTabScope.Component && _selectedObjects is not null && _selectedObjects.Length > 0) 3478foreach (Type tabType in GetCommonTabs(_selectedObjects, PropertyTabScope.Component)) 3482AddTab(tabType, PropertyTabScope.Component, @object, setupToolbar: false); 3488if (tabScope <= PropertyTabScope.Document 3497if (tabAttribute.TabScopes[i] == PropertyTabScope.Document) 3499AddTab(tabAttribute.TabClasses[i], PropertyTabScope.Document, component, setupToolbar: false); 3557if (killTab && _tabs[tabIndex].Scope > PropertyTabScope.Global) 3565/// For example, removing <see cref="PropertyTabScope.Document"/> will remove <see cref="PropertyTabScope.Document"/> 3566/// and <see cref="PropertyTabScope.Component"/> tabs. 3568internal void RemoveTabs(PropertyTabScope classification, bool setupToolbar) 3570if (classification == PropertyTabScope.Static) 3613if (_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)