BackgroundType Enumeration
Collapse the table of content
Expand the table of content

BackgroundType Enumeration


Specifies the source of a visual style element's background.

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

public enum BackgroundType

Member nameDescription

The background of the element is a rectangle filled with a color or pattern.


The background of the element is a bitmap. If this value is set, then the property corresponding to the FilenameProperty.ImageFile value will contain the name of a valid image file.


The element has no background.

The background of a visual style element can be a bitmap image, a filled rectangle, or nothing. The BackgroundType values represent the return values of the GetEnumValue method when it is called with an argument value of EnumProperty.BackgroundType.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft