5 types derived from CategoryAttribute
PresentationCore (1)
MS\Internal\CustomCategoryAttribute.cs (1)
18internal sealed class CustomCategoryAttribute : CategoryAttribute
PresentationFramework (1)
MS\Internal\Controls\CustomCategoryAttribute.cs (1)
13internal sealed class CustomCategoryAttribute : CategoryAttribute
System.Windows.Forms (2)
SRCategoryAttribute.cs (1)
9internal sealed class SRCategoryAttribute : CategoryAttribute
System\Windows\Forms\WinCategoryAttribute.cs (1)
12internal sealed class WinCategoryAttribute : CategoryAttribute
System.Windows.Forms.Design (1)
SRCategoryAttribute.cs (1)
9internal sealed class SRCategoryAttribute : CategoryAttribute
210 instantiations of CategoryAttribute
Microsoft.AspNetCore.Components.WebView.WindowsForms (5)
BlazorWebView.cs (5)
73 [Category("Behavior")] 89 [Category("Behavior")] 127 [Category("Action")] 134 [Category("Action")] 141 [Category("Action")]
PresentationFramework (161)
System\Windows\Controls\ComboBox.cs (2)
88[Bindable(true), Category("Layout")] 119[Bindable(true), Browsable(false), Category("Appearance")]
System\Windows\Controls\ContextMenu.cs (8)
89[Bindable(true), Category("Layout")] 113[Bindable(true), Category("Layout")] 134[Bindable(true), Browsable(false), Category("Appearance")] 181[Bindable(true), Category("Layout")] 205[Bindable(true), Category("Layout")] 228[Bindable(true), Category("Layout")] 276[Bindable(false), Category("Layout")] 295[Bindable(true), Category("Behavior")]
System\Windows\Controls\Control.cs (14)
75[Bindable(true), Category("Appearance")] 97[Bindable(true), Category("Appearance")] 120[Bindable(true), Category("Appearance")] 144[Bindable(true), Category("Appearance")] 168[Bindable(true), Category("Appearance")] 194[Bindable(true), Category("Appearance")] 218[Bindable(true), Category("Appearance")] 242[Bindable(true), Category("Appearance")] 266[Bindable(true), Category("Appearance")] 292[Bindable(true), Category("Layout")] 318[Bindable(true), Category("Layout")] 336[Bindable(true), Category("Behavior")] 354[Bindable(true), Category("Behavior")] 384[Bindable(true), Category("Layout")]
System\Windows\Controls\DataGridRow.cs (1)
1033[Bindable(true), Category("Appearance")]
System\Windows\Controls\Expander.cs (2)
78[Bindable(true), Category("Behavior")] 149[Bindable(true), Category("Appearance")]
System\Windows\Controls\GridViewColumnHeader.cs (1)
158[Category("Behavior")]
System\Windows\Controls\HeaderedContentControl.cs (3)
64[Bindable(true), Category("Content")] 141[Bindable(true), Category("Content")] 190[Bindable(true), Category("Content")]
System\Windows\Controls\InkCanvas.cs (7)
410[Bindable(true), Category("Appearance")] 1005[Category("Behavior")] 1136[Category("Behavior")] 1227[Category("Behavior")] 1283[Category("Behavior")] 1337[Category("Behavior")] 1485[Category("Behavior")]
System\Windows\Controls\ItemsControl.cs (2)
682[Bindable(true), Category("Content")] 734[Bindable(true), Category("Content")]
System\Windows\Controls\ListBox.cs (1)
196[Bindable(true), Category("Appearance"), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
System\Windows\Controls\ListBoxItem.cs (1)
76[Bindable(true), Category("Appearance")]
System\Windows\Controls\MenuItem.cs (15)
211[Category("Behavior")] 244[Category("Behavior")] 261[Category("Behavior")] 291[Category("Behavior")] 307[Category("Behavior")] 385[Bindable(true), Category("Action")] 485[Bindable(true), Category("Action")] 512[Bindable(true), Category("Action")] 537[Bindable(true), Browsable(false), Category("Appearance")] 758[Category("Behavior")] 811[Bindable(true), Category("Behavior")] 845[Browsable(false), Category("Appearance")] 889[Browsable(false), Category("Appearance")] 914[Bindable(true), Category("Appearance")] 977[Bindable(true), Category("Behavior")]
System\Windows\Controls\Page.cs (4)
320[Category("Appearance")] 437[Bindable(true), Category("Appearance")] 455[Bindable(true), Category("Appearance")] 478[Bindable(true), Category("Appearance")]
System\Windows\Controls\Panel.cs (1)
221[Bindable(false), Category("Behavior")]
System\Windows\Controls\Primitives\ButtonBase.cs (6)
174[Category("Behavior")] 239[Browsable(false), Category("Appearance"), ReadOnly(true)] 261[Bindable(true), Category("Action")] 340[Bindable(true), Category("Action")] 363[Bindable(true), Category("Action")] 393[Bindable(true), Category("Behavior")]
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
515[Bindable(true), Category("Appearance")]
System\Windows\Controls\Primitives\MultiSelector.cs (1)
32[Bindable(true), Category("Appearance"), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
System\Windows\Controls\Primitives\Popup.cs (9)
293[Bindable(true), Category("Appearance")] 444[Bindable(true), Category("Layout")] 513[Bindable(false), Category("Layout")] 537[Bindable(true), Category("Behavior")] 582[Bindable(true), Category("Layout")] 618[Bindable(true), Category("Layout")] 643[Bindable(true), Category("Layout")] 687[Bindable(true), Category("Layout")] 769[Bindable(true), Category("Appearance")]
System\Windows\Controls\Primitives\RangeBase.cs (6)
55[Category("Behavior")] 78[Bindable(true), Category("Behavior")] 139[Bindable(true), Category("Behavior")] 209[Bindable(true), Category("Behavior")] 279[Bindable(true), Category("Behavior")] 306[Bindable(true), Category("Behavior")]
System\Windows\Controls\Primitives\RepeatButton.cs (2)
57[Bindable(true), Category("Behavior")] 84[Bindable(true), Category("Behavior")]
System\Windows\Controls\Primitives\ScrollBar.cs (1)
63[Category("Behavior")]
System\Windows\Controls\Primitives\Selector.cs (6)
81[Category("Behavior")] 245[Bindable(true), Category("Behavior")] 321[Bindable(true), Category("Appearance"), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] 376[Bindable(true), Category("Appearance"), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] 442[Bindable(true), Category("Appearance"), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] 687[Bindable(true), Category("Appearance")]
System\Windows\Controls\Primitives\Thumb.cs (4)
71[Category("Behavior")] 77[Category("Behavior")] 83[Category("Behavior")] 106[Bindable(true), Browsable(false), Category("Appearance")]
System\Windows\Controls\Primitives\TickBar.cs (10)
118[Bindable(true), Category("Appearance")] 138[Bindable(true), Category("Appearance")] 158[Bindable(true), Category("Appearance")] 178[Bindable(true), Category("Appearance")] 198[Bindable(true), Category("Appearance")] 218[Bindable(true), Category("Appearance")] 240[Bindable(true), Category("Appearance")] 264[Bindable(true), Category("Appearance")] 289[Bindable(true), Category("Appearance")] 323[Bindable(true), Category("Appearance")]
System\Windows\Controls\Primitives\ToggleButton.cs (5)
60[Category("Behavior")] 77[Category("Behavior")] 94[Category("Behavior")] 126[Category("Appearance")] 223[Bindable(true), Category("Behavior")]
System\Windows\Controls\ScrollViewer.cs (7)
311[Bindable(true), Category("Appearance")] 322[Bindable(true), Category("Appearance")] 377[Category("Layout")] 389[Category("Layout")] 418[Category("Layout")] 430[Category("Layout")] 841[Category("Action")]
System\Windows\Controls\Slider.cs (13)
277[Bindable(true), Category("Appearance")] 301[Bindable(true), Category("Behavior")] 326[Bindable(true), Category("Behavior")] 353[Bindable(true), Category("Behavior")] 389[Bindable(true), Category("Appearance")] 434[Bindable(true), Category("Behavior")] 460[Bindable(true), Category("Appearance")] 496[Bindable(true), Category("Appearance")] 523[Bindable(true), Category("Appearance")] 557[Bindable(true), Category("Appearance")] 584[Bindable(true), Category("Appearance")] 634[Bindable(true), Category("Appearance")] 723[Bindable(true), Category("Behavior")]
System\Windows\Controls\TabControl.cs (1)
89[Bindable(true), Category("Behavior")]
System\Windows\Controls\TabItem.cs (1)
80[Bindable(true), Category("Appearance")]
System\Windows\Controls\ToolBar.cs (1)
196[Bindable(true), Browsable(false), Category("Appearance")]
System\Windows\Controls\ToolTip.cs (10)
63[Bindable(true), Category("Behavior")] 94[Bindable(true), Category("Layout")] 125[Bindable(true), Category("Layout")] 179[Bindable(true), Browsable(false), Category("Appearance")] 235[Bindable(true), Category("Layout")] 259[Bindable(true), Category("Layout")] 283[Bindable(true), Category("Layout")] 301[Bindable(false), Category("Layout")] 320[Bindable(true), Category("Behavior")] 338[Bindable(true), Category("Behavior")]
System\Windows\Controls\TreeView.cs (4)
65[Bindable(true), Category("Appearance"), ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] 94[Bindable(true), Category("Appearance"), ReadOnly(true), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] 127[Bindable(true), Category("Appearance")] 153[Category("Behavior")]
System\Windows\Controls\TreeViewItem.cs (5)
181[Browsable(false), Category("Appearance"), ReadOnly(true)] 202[Category("Behavior")] 234[Category("Behavior")] 266[Category("Behavior")] 298[Category("Behavior")]
System\Windows\Documents\Hyperlink.cs (4)
151[Bindable(true), Category("Action")] 266[Bindable(true), Category("Action")] 301[Bindable(true), Category("Action")] 461[Category("Behavior")]
System\Windows\FrameworkContentElement.cs (1)
1817[Bindable(true), Category("Appearance")]
System\Windows\FrameworkElement.cs (1)
5874[Bindable(true), Category("Appearance")]
System.ComponentModel.Primitives (14)
System\ComponentModel\CategoryAttribute.cs (14)
27public static CategoryAttribute Action => field ??= new CategoryAttribute(nameof(Action)); 32public static CategoryAttribute Appearance => field ??= new CategoryAttribute(nameof(Appearance)); 37public static CategoryAttribute Asynchronous => field ??= new CategoryAttribute(nameof(Asynchronous)); 42public static CategoryAttribute Behavior => field ??= new CategoryAttribute(nameof(Behavior)); 47public static CategoryAttribute Data => field ??= new CategoryAttribute(nameof(Data)); 52public static CategoryAttribute Default => field ??= new CategoryAttribute(); 57public static CategoryAttribute Design => field ??= new CategoryAttribute(nameof(Design)); 62public static CategoryAttribute DragDrop => field ??= new CategoryAttribute(nameof(DragDrop)); 67public static CategoryAttribute Focus => field ??= new CategoryAttribute(nameof(Focus)); 72public static CategoryAttribute Format => field ??= new CategoryAttribute(nameof(Format)); 77public static CategoryAttribute Key => field ??= new CategoryAttribute(nameof(Key)); 82public static CategoryAttribute Layout => field ??= new CategoryAttribute(nameof(Layout)); 87public static CategoryAttribute Mouse => field ??= new CategoryAttribute(nameof(Mouse)); 92public static CategoryAttribute WindowStyle => field ??= new CategoryAttribute(nameof(WindowStyle));
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\AxHost.cs (1)
2372category = new CategoryAttribute(name.ToString());
System\Windows\Forms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (1)
72e.Add(new CategoryAttribute(category));
System.Windows.Forms.Design (9)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1126: base("Value", [new CategoryAttribute(collectionItemType.Name)])
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (2)
65[Category("Design")] 90[Category("Design")]
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersInheritedExtenderProvider.cs (1)
73[Category("Design")]
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (2)
87[Category("Design")] 115[Category("Design")]
System\Windows\Forms\Design\ComponentTray.cs (2)
944[Category("Layout")] 972[Category("Layout")]
System\Windows\Forms\Design\DesignerExtenders.NameExtenderProvider.cs (1)
75[Category("Design")]
System.Windows.Forms.Design.Tests (7)
System\ComponentModel\Design\DesignerActionListTests.cs (6)
143[Category("Category")] 150[Category("")] 157[Category(null)] 185[Category("Category")] 190[Category("")] 195[Category(null)]
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (1)
2012[Category("Category")]
System.Windows.Forms.Tests (1)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (1)
1422[Category("Category")]
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHost.cs (2)
570[Bindable(true), Category("Behavior")] 586[Bindable(true), Category("Behavior")]
WinFormsControlsTest (9)
UserControls\UserControlWithFontNameEditor.cs (8)
21[Category(Category)] 32[Category(Category)] 43[Category(Category)] 54[Category(Category)] 65[Category(Category)] 76[Category(Category)] 87[Category(Category)] 98[Category(Category)]
UserControls\UserControlWithObjectCollectionEditor.cs (1)
21[Category("Accessibility")]
59 references to CategoryAttribute
netstandard (1)
netstandard.cs (1)
194[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.CategoryAttribute))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
180[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.CategoryAttribute))]
System.ComponentModel.Primitives (17)
System\ComponentModel\CategoryAttribute.cs (17)
27public static CategoryAttribute Action => field ??= new CategoryAttribute(nameof(Action)); 32public static CategoryAttribute Appearance => field ??= new CategoryAttribute(nameof(Appearance)); 37public static CategoryAttribute Asynchronous => field ??= new CategoryAttribute(nameof(Asynchronous)); 42public static CategoryAttribute Behavior => field ??= new CategoryAttribute(nameof(Behavior)); 47public static CategoryAttribute Data => field ??= new CategoryAttribute(nameof(Data)); 52public static CategoryAttribute Default => field ??= new CategoryAttribute(); 57public static CategoryAttribute Design => field ??= new CategoryAttribute(nameof(Design)); 62public static CategoryAttribute DragDrop => field ??= new CategoryAttribute(nameof(DragDrop)); 67public static CategoryAttribute Focus => field ??= new CategoryAttribute(nameof(Focus)); 72public static CategoryAttribute Format => field ??= new CategoryAttribute(nameof(Format)); 77public static CategoryAttribute Key => field ??= new CategoryAttribute(nameof(Key)); 82public static CategoryAttribute Layout => field ??= new CategoryAttribute(nameof(Layout)); 87public static CategoryAttribute Mouse => field ??= new CategoryAttribute(nameof(Mouse)); 92public static CategoryAttribute WindowStyle => field ??= new CategoryAttribute(nameof(WindowStyle)); 95/// Initializes a new instance of the <see cref='System.ComponentModel.CategoryAttribute'/> 103/// Initializes a new instance of the <see cref='System.ComponentModel.CategoryAttribute'/> 138obj is CategoryAttribute other && other.Category == Category;
System.ComponentModel.TypeConverter (3)
System\ComponentModel\MemberDescriptor.cs (3)
166/// in the <see cref='System.ComponentModel.CategoryAttribute'/>. 168public virtual string Category => _category ??= ((CategoryAttribute)Attributes[typeof(CategoryAttribute)]!).Category;
System.Windows.Forms (7)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
52CategoryAttribute? cat = owner.GetCategoryForDispid(_dispid.Value);
System\Windows\Forms\ActiveX\AxHost.cs (4)
148private static readonly CategoryAttribute?[] s_categoryNames = 164private Dictionary<PROPCAT, CategoryAttribute>? _objectDefinedCategoryNames; 2341private unsafe CategoryAttribute? GetCategoryForDispid(int dispid) 2362if (_objectDefinedCategoryNames?.TryGetValue(propcat, out CategoryAttribute? category) ?? false
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
710public virtual string PropertyCategory => CategoryAttribute.Default.Category;
System\Windows\Forms\WinCategoryAttribute.cs (1)
15/// Initializes a new instance of the <see cref="CategoryAttribute"/> class.
System.Windows.Forms.Design (11)
System\ComponentModel\Design\DesignerActionList.cs (2)
91if (GetCustomAttribute(info, typeof(CategoryAttribute)) is CategoryAttribute catAttr)
System\Windows\Forms\Design\ControlDesigner.cs (1)
1677CategoryAttribute.Design,
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
1335CategoryAttribute categoryAttr = CategoryAttribute.Design;
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (1)
252CategoryAttribute.Design,
System\Windows\Forms\Design\DocumentDesigner.cs (2)
1205CategoryAttribute.Design); 1210CategoryAttribute.Design);
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
2099CategoryAttribute.Design); 2105CategoryAttribute.Design); 2111CategoryAttribute.Design);
System.Windows.Forms.Tests (18)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (18)
28Assert.Equal("Misc", Assert.IsType<CategoryAttribute>(property.Attributes[typeof(CategoryAttribute)]).Category); 44Assert.Equal("Misc", Assert.IsType<CategoryAttribute>(property.Attributes[typeof(CategoryAttribute)]).Category); 60Assert.Equal("Misc", Assert.IsType<CategoryAttribute>(property.Attributes[typeof(CategoryAttribute)]).Category); 76Assert.Equal("Misc", Assert.IsType<CategoryAttribute>(property.Attributes[typeof(CategoryAttribute)]).Category); 92Assert.Equal("Misc", Assert.IsType<CategoryAttribute>(property.Attributes[typeof(CategoryAttribute)]).Category); 506Assert.Equal("Misc", Assert.IsType<CategoryAttribute>(property.Attributes[typeof(CategoryAttribute)]).Category); 574Assert.Equal("Misc", Assert.IsType<CategoryAttribute>(property.Attributes[typeof(CategoryAttribute)]).Category); 791Assert.Equal("Misc", Assert.IsType<CategoryAttribute>(property.Attributes[typeof(CategoryAttribute)]).Category); 856Assert.Equal("Misc", Assert.IsType<CategoryAttribute>(property.Attributes[typeof(CategoryAttribute)]).Category);
System.Windows.Forms.TestUtilities (1)
PropertyGridInternal\SubPropertyGrid.cs (1)
33.GetCustomAttribute<CategoryAttribute>()!.Category;