IconsSystemShield Property

Gets an
Icon instance that contains the
Shield icon as it is displayed by the current operating system.
On Windows Vista and above sizes range from 16x16 to 256x256, on Windows XP the largest resolution is 48x48, and on Linux the icon has always 32x32 and 16x16 image sizes.
Namespace: KGySoft.DrawingAssembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 10.0.0-rc.1
public static Icon SystemShield { get; }
Public Shared ReadOnly Property SystemShield As Icon
Get
public:
static property Icon^ SystemShield {
Icon^ get ();
}
static member SystemShield : Icon with get
Property Value
Icon For compatibility reasons in Windows 7 and above this property returns the two-colored UAC shield as it appears in the current operating system.
To return the system-specific counterpart of the
Shield property (the four-colored Windows shield)
you can use the
FromFile(String, Int32) method on Windows 7 and above like this:
Icon systemWindowsShield = Icons.FromFile("imageres", 1028);
On Windows 11 the icon contains 8 images from 16x16 to 256x256. The 32x32 and 16x16 ones look like this:


On Windows 10 the icon contains 8 images from 16x16 to 256x256. The 32x32 and 16x16 ones look like this:


On Windows 7 and Windows 8 the icon sizes vary from 8x8 to 256x256. Windows 7 has 7 images,
whereas Windows 8 has an additional 64x64 image, which is missing on Windows 7. The 32x32 and 16x16 ones look like this:


On Windows Vista the icon contains 7 images from 8x8 to 256x256. The 32x32 and 16x16 ones look like this:


On Windows XP the icon contains 3 images from 16x16 to 48x48. The 32x32 and 16x16 ones look like this:


On Linux/Mono the icon contains the following 32x32 and 16x16 images:


On Linux the .NET Core build mistakenly returns the
SystemError icon, which is an issue in the
SystemIcons implementation of .NET Core.