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)
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)
207
AddTab(DefaultTabType,
PropertyTabScope
.Static);
272
RemoveTabs(
PropertyTabScope
.Document, setupToolbar: true);
301
RefreshTabs(
PropertyTabScope
.Document);
1020
RefreshTabs(
PropertyTabScope
.Component);
1460
PropertyTabScope
scope,
1581
/// Must be <see cref="
PropertyTabScope
.Component" /> or <see cref="
PropertyTabScope
.Document"/>
1583
internal void ClearTabs(
PropertyTabScope
tabScope)
1585
if (tabScope <
PropertyTabScope
.Document)
2150
private static IEnumerable<Type> GetCommonTabs(object[] components,
PropertyTabScope
tabScope)
2438
if (tabAttribute.TabScopes[i] ==
PropertyTabScope
.Document)
2440
AddTab(tabAttribute.TabClasses[i],
PropertyTabScope
.Document, e.Component, setupToolbar: true);
2485
if (tabAttribute.TabScopes[i] ==
PropertyTabScope
.Document)
3417
/// Either <see cref="
PropertyTabScope
.Component"/> or <see cref="
PropertyTabScope
.Document"/>.
3421
/// The <see cref="RefreshTabs(
PropertyTabScope
)"/> method first deletes the property tabs of the specified
3425
public void RefreshTabs(
PropertyTabScope
tabScope)
3427
if (tabScope <
PropertyTabScope
.Document)
3435
if (tabScope <=
PropertyTabScope
.Component && _selectedObjects is not null && _selectedObjects.Length > 0)
3438
foreach (Type tabType in GetCommonTabs(_selectedObjects,
PropertyTabScope
.Component))
3442
AddTab(tabType,
PropertyTabScope
.Component, @object, setupToolbar: false);
3448
if (tabScope <=
PropertyTabScope
.Document
3457
if (tabAttribute.TabScopes[i] ==
PropertyTabScope
.Document)
3459
AddTab(tabAttribute.TabClasses[i],
PropertyTabScope
.Document, component, setupToolbar: false);
3517
if (killTab && _tabs[tabIndex].Scope >
PropertyTabScope
.Global)
3525
/// For example, removing <see cref="
PropertyTabScope
.Document"/> will remove <see cref="
PropertyTabScope
.Document"/>
3526
/// and <see cref="
PropertyTabScope
.Component"/> tabs.
3528
internal void RemoveTabs(
PropertyTabScope
classification, bool setupToolbar)
3530
if (classification ==
PropertyTabScope
.Static)
3573
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)
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
474
_propertyGrid.RefreshTabs(
PropertyTabScope
.Component);