System.Windows.Forms
1.0.5000.0
2.0.0.0
System.Enum
This enumeration is used by members such as , , and .
In the case of the style button, this enumeration controls some behavior as well as appearance. The style control initially appears until the mouse pointer moves over it. When the mouse pointer moves over the control, it appears as a style control until the mouse pointer is moved off of it again.
If the style is used, the appearance of the control is determined by the user's operating system and the following property values will be ignored: , ImageAlign, Image, ImageIndex, ImageList, and TextAlign. In addition, the property will be ignored for button controls. If supported, users can change the appearance of controls by adjusting the appearance settings of their operating system.
When the property of the and classes is set to , the control is drawn by the user's operating system and the check alignment is based upon the CheckAlign and property values. The CheckAlign property value is not changed, but the appearance of the control can be affected. The check box is horizontally aligned with either the left or right edge of the control (a left or center alignment appears left aligned, right remains unchanged), and vertically aligned the same as the descriptive text. For example, if you have a control with a CheckAlign property value of and a property value of , and the property value is set to , the check box alignment will appear to be while the text alignment remains unchanged.
Setting the FlatStyle property to is not advisable if you need to display an image on a control, display an image as a control's background, or perform precise text alignment.
Specifies the appearance of a control.
Field
System.Windows.Forms.FlatStyle
The control appears flat.
1.0.5000.0
2.0.0.0
Field
System.Windows.Forms.FlatStyle
A control appears flat until the mouse pointer moves over it, at which point it appears three-dimensional.
1.0.5000.0
2.0.0.0
Field
System.Windows.Forms.FlatStyle
The control appears three-dimensional.
1.0.5000.0
2.0.0.0
Field
System.Windows.Forms.FlatStyle
The appearance of the control is determined by the user's operating system.
1.0.5000.0
2.0.0.0