System.Windows.Forms.VisualStyles.BackgroundType Enumeration

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

Syntax

public enum BackgroundType

Remarks

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

Members

Member NameDescription
BorderFill

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

ImageFile

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.

None

The element has no background.

Requirements

Namespace: System.Windows.Forms.VisualStyles
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0