VisualStyleInformation.MinimumColorDepth Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the minimum color depth for the current visual style.

Namespace:   System.Windows.Forms.VisualStyles
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public static int MinimumColorDepth { get; }

Property Value

Type: System.Int32

The minimum color depth for the current visual style if visual styles are enabled; otherwise, 0.

This property checks the values of the IsEnabledByUser and VisualStyleRenderer.IsSupported properties internally.

.NET Framework
Available since 2.0
Return to top
Show: