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)
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)
209
AddTab(DefaultTabType,
PropertyTabScope
.Static);
274
RemoveTabs(
PropertyTabScope
.Document, setupToolbar: true);
300
RefreshTabs(
PropertyTabScope
.Document);
1019
RefreshTabs(
PropertyTabScope
.Component);
1456
PropertyTabScope
scope,
1577
/// Must be <see cref="
PropertyTabScope
.Component" /> or <see cref="
PropertyTabScope
.Document"/>
1579
internal void ClearTabs(
PropertyTabScope
tabScope)
1581
if (tabScope <
PropertyTabScope
.Document)
2146
private static IEnumerable<Type> GetCommonTabs(object[] components,
PropertyTabScope
tabScope)
2434
if (tabAttribute.TabScopes[i] ==
PropertyTabScope
.Document)
2436
AddTab(tabAttribute.TabClasses[i],
PropertyTabScope
.Document, e.Component, setupToolbar: true);
2481
if (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
3421
public void RefreshTabs(
PropertyTabScope
tabScope)
3423
if (tabScope <
PropertyTabScope
.Document)
3431
if (tabScope <=
PropertyTabScope
.Component && _selectedObjects is not null && _selectedObjects.Length > 0)
3434
foreach (Type tabType in GetCommonTabs(_selectedObjects,
PropertyTabScope
.Component))
3438
AddTab(tabType,
PropertyTabScope
.Component, @object, setupToolbar: false);
3444
if (tabScope <=
PropertyTabScope
.Document
3453
if (tabAttribute.TabScopes[i] ==
PropertyTabScope
.Document)
3455
AddTab(tabAttribute.TabClasses[i],
PropertyTabScope
.Document, component, setupToolbar: false);
3513
if (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.
3524
internal void RemoveTabs(
PropertyTabScope
classification, bool setupToolbar)
3526
if (classification ==
PropertyTabScope
.Static)
3569
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.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);