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)
26
TabScopes = Array.Empty<
PropertyTabScope
>();
34
public PropertyTabAttribute(Type tabClass) : this(tabClass,
PropertyTabScope
.Component)
45
: this(tabClassName,
PropertyTabScope
.Component)
53
public PropertyTabAttribute(Type tabClass,
PropertyTabScope
tabScope)
56
if (tabScope <
PropertyTabScope
.Document)
60
TabScopes = new
PropertyTabScope
[] { tabScope };
70
PropertyTabScope
tabScope)
73
if (tabScope <
PropertyTabScope
.Document)
77
TabScopes = new
PropertyTabScope
[] { tabScope };
145
public
PropertyTabScope
[] TabScopes { get; private set; }
179
protected void InitializeArrays(string[]? tabClassNames,
PropertyTabScope
[]? tabScopes)
187
protected void InitializeArrays(Type[]? tabClasses,
PropertyTabScope
[]? tabScopes)
192
private void InitializeArrays(string[]? tabClassNames, Type[]? tabClasses,
PropertyTabScope
[]? tabScopes)
220
if (tabScopes[i] <
PropertyTabScope
.Document)
225
TabScopes = (
PropertyTabScope
[])tabScopes.Clone();
229
TabScopes = new
PropertyTabScope
[tabClasses!.Length];
233
TabScopes[i] =
PropertyTabScope
.Component;
System.Windows.Forms (35)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (31)
213
AddTab(DefaultTabType,
PropertyTabScope
.Static);
278
RemoveTabs(
PropertyTabScope
.Document, setupToolbar: true);
304
RefreshTabs(
PropertyTabScope
.Document);
1064
RefreshTabs(
PropertyTabScope
.Component);
1501
PropertyTabScope
scope,
1622
/// Must be <see cref="
PropertyTabScope
.Component" /> or <see cref="
PropertyTabScope
.Document"/>
1624
internal void ClearTabs(
PropertyTabScope
tabScope)
1626
if (tabScope <
PropertyTabScope
.Document)
2190
private static IEnumerable<Type> GetCommonTabs(object[] components,
PropertyTabScope
tabScope)
2478
if (tabAttribute.TabScopes[i] ==
PropertyTabScope
.Document)
2480
AddTab(tabAttribute.TabClasses[i],
PropertyTabScope
.Document, e.Component, setupToolbar: true);
2525
if (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
3465
public void RefreshTabs(
PropertyTabScope
tabScope)
3467
if (tabScope <
PropertyTabScope
.Document)
3475
if (tabScope <=
PropertyTabScope
.Component && _selectedObjects is not null && _selectedObjects.Length > 0)
3478
foreach (Type tabType in GetCommonTabs(_selectedObjects,
PropertyTabScope
.Component))
3482
AddTab(tabType,
PropertyTabScope
.Component, @object, setupToolbar: false);
3488
if (tabScope <=
PropertyTabScope
.Document
3497
if (tabAttribute.TabScopes[i] ==
PropertyTabScope
.Document)
3499
AddTab(tabAttribute.TabClasses[i],
PropertyTabScope
.Document, component, setupToolbar: false);
3557
if (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.
3568
internal void RemoveTabs(
PropertyTabScope
classification, bool setupToolbar)
3570
if (classification ==
PropertyTabScope
.Static)
3613
if (_tabs[tabIndex].Scope ==
PropertyTabScope
.Static)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyTabCollection.cs (3)
64
_ownerPropertyGrid.AddTab(propertyTabType,
PropertyTabScope
.Global);
67
public void AddTabType(Type propertyTabType,
PropertyTabScope
tabScope)
81
public void Clear(
PropertyTabScope
tabScope)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.TabInfo.cs (1)
11
private record TabInfo(PropertyTab Tab,
PropertyTabScope
Scope, ToolStripButton Button)