23 instantiations of ToolboxBitmapAttribute
System.Drawing.Common.Tests (8)
System\Drawing\ToolboxBitmapAttributeTests.cs (8)
35ToolboxBitmapAttribute attribute = new(fileName); 55ToolboxBitmapAttribute attribute = new(type); 81ToolboxBitmapAttribute attribute = new(type, fileName); 99ToolboxBitmapAttribute attribute = new((string)null); 114ToolboxBitmapAttribute attribute = new((string)null); 122ToolboxBitmapAttribute attribute = new((string)null); 151ToolboxBitmapAttribute attribute = new(type); 166yield return new object[] { ToolboxBitmapAttribute.Default, new ToolboxBitmapAttribute(typeof(ToolboxBitmapAttribute), "bitmap_173x183_indexed_8bit"), true };
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
10[ToolboxBitmap(typeof(DataGridViewButtonColumn), "DataGridViewButtonColumn")]
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
9[ToolboxBitmap(typeof(DataGridViewCheckBoxColumn), "DataGridViewCheckBoxColumn")]
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (1)
12[ToolboxBitmap(typeof(DataGridViewComboBoxColumn), "DataGridViewComboBoxColumn")]
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
10[ToolboxBitmap(typeof(DataGridViewImageColumn), "DataGridViewImageColumn")]
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (1)
10[ToolboxBitmap(typeof(DataGridViewLinkColumn), "DataGridViewLinkColumn")]
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxColumn.cs (1)
9[ToolboxBitmap(typeof(DataGridViewTextBoxColumn), "DataGridViewTextBoxColumn")]
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
12[ToolboxBitmap(typeof(ToolStripPanel), "ToolStripPanel_standalone")]
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (4)
374ToolboxBitmapAttribute bottomToolboxBitmapAttribute = new(typeof(ToolStripPanel), "ToolStripContainer_BottomToolStripPanel"); 375ToolboxBitmapAttribute rightToolboxBitmapAttribute = new(typeof(ToolStripPanel), "ToolStripContainer_RightToolStripPanel"); 376ToolboxBitmapAttribute topToolboxBitmapAttribute = new(typeof(ToolStripPanel), "ToolStripContainer_TopToolStripPanel"); 377ToolboxBitmapAttribute leftToolboxBitmapAttribute = new(typeof(ToolStripPanel), "ToolStripContainer_LeftToolStripPanel");
System.Windows.Forms.Design.Tests (4)
System\Drawing\Design\ToolboxItemTests.cs (4)
1750[ToolboxBitmap(typeof(ToolboxItemTests), "16x16.bmp")] 1759[ToolboxBitmap(typeof(ToolboxItemTests), "24x16.bmp")] 1768[ToolboxBitmap(typeof(ToolboxItemTests), "16x24.bmp")] 1777[ToolboxBitmap("NoSuchImage")]
30 references to ToolboxBitmapAttribute
System.Drawing (1)
System.Drawing.cs (1)
166[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.ToolboxBitmapAttribute))]
System.Drawing.Common (1)
Special\NotSupported.cs (1)
1358public static readonly System.Drawing.ToolboxBitmapAttribute Default;
System.Drawing.Common.Tests (16)
System\Drawing\ToolboxBitmapAttributeTests.cs (16)
35ToolboxBitmapAttribute attribute = new(fileName); 55ToolboxBitmapAttribute attribute = new(type); 81ToolboxBitmapAttribute attribute = new(type, fileName); 99ToolboxBitmapAttribute attribute = new((string)null); 114ToolboxBitmapAttribute attribute = new((string)null); 122ToolboxBitmapAttribute attribute = new((string)null); 134ToolboxBitmapAttribute attribute = ToolboxBitmapAttribute.Default; 151ToolboxBitmapAttribute attribute = new(type); 165yield return new object[] { ToolboxBitmapAttribute.Default, ToolboxBitmapAttribute.Default, true }; 166yield return new object[] { ToolboxBitmapAttribute.Default, new ToolboxBitmapAttribute(typeof(ToolboxBitmapAttribute), "bitmap_173x183_indexed_8bit"), true }; 168yield return new object[] { ToolboxBitmapAttribute.Default, new(), false }; 169yield return new object[] { ToolboxBitmapAttribute.Default, null, false }; 174public void Equals_Other_ReturnsExpected(ToolboxBitmapAttribute attribute, object other, bool expected)
System.Windows.Forms.Design (12)
System\Drawing\Design\ToolboxItem.cs (1)
597if (TypeDescriptorHelper.TryGetAttribute(type, out ToolboxBitmapAttribute? attr))
System\Windows\Forms\Design\BaseContextMenuStrip.cs (2)
300_image = ToolboxBitmapAttribute.GetImageFromResource(_itemType, imageName: null, large: false); 304_image ??= ToolboxBitmapAttribute.GetImageFromResource(_comp!.GetType(), imageName: null, large: false);
System\Windows\Forms\Design\ComponentTray.cs (3)
2442ToolboxBitmapAttribute attr = (ToolboxBitmapAttribute)TypeDescriptor.GetAttributes(_component)[typeof(ToolboxBitmapAttribute)];
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1220if (TypeDescriptorHelper.TryGetAttribute(column, out ToolboxBitmapAttribute? attr))
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (4)
374ToolboxBitmapAttribute bottomToolboxBitmapAttribute = new(typeof(ToolStripPanel), "ToolStripContainer_BottomToolStripPanel"); 375ToolboxBitmapAttribute rightToolboxBitmapAttribute = new(typeof(ToolStripPanel), "ToolStripContainer_RightToolStripPanel"); 376ToolboxBitmapAttribute topToolboxBitmapAttribute = new(typeof(ToolStripPanel), "ToolStripContainer_TopToolStripPanel"); 377ToolboxBitmapAttribute leftToolboxBitmapAttribute = new(typeof(ToolStripPanel), "ToolStripContainer_LeftToolStripPanel");
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
138Bitmap knownImage = ToolboxBitmapAttribute.GetImageFromResource(itemType, null, false) as Bitmap;