<PackageReference Include="System.Drawing.Common" Version="9.0.5" />

ToolboxBitmapAttribute

Allows you to specify an icon to represent a control in a container, such as the Microsoft Visual Studio Form Designer.
public static readonly ToolboxBitmapAttribute Default

A ToolboxBitmapAttribute object that has its small image and its large image set to null.

public ToolboxBitmapAttribute(string imageFile)

Initializes a new ToolboxBitmapAttribute object with an image from a specified file.

Initializes a new ToolboxBitmapAttribute object based on a 16 x 16 bitmap that is embedded as a resource in a specified assembly.

public ToolboxBitmapAttribute(Type t, string name)

Initializes a new ToolboxBitmapAttribute object based on a 16 by 16 bitmap that is embedded as a resource in a specified assembly.

public static Image GetImageFromResource(Type t, string imageName, bool large)

Returns an Image object based on a bitmap resource that is embedded in an assembly.

public Image GetImage(object component)

Gets the small Image associated with this ToolboxBitmapAttribute object.

public Image GetImage(object component, bool large)

Gets the small or large Image associated with this ToolboxBitmapAttribute object.

public Image GetImage(Type type)

Gets the small Image associated with this ToolboxBitmapAttribute object.

public Image GetImage(Type type, bool large)

Gets the small or large Image associated with this ToolboxBitmapAttribute object.

public Image GetImage(Type type, string imgName, bool large)

Gets the small or large Image associated with this ToolboxBitmapAttribute object.