c # Controls appearance attributes

System.Drawing namespace

In the C # .NET, the System.Drawing namespace provides GDI + access to basic graphics functionality. Main Graphics class, Bitmap class class class inherits from Brush, Font class, Icon class, Image class, Pen type, Color class, SystemColors and so on.

System.Drawing.SystemColors

SystemColors each attribute class are Color structure which is Windows display element colors . Such as: ActiveBorder- get a Color structure of color represents the active window's border. Control- surface color three-dimensional element.

System.Drawing.Color

Color represents one ARGB color (alpha, red, green, blue).

Exterior

Control.BackColor : get or set the background color of the control.
FlatStyle enumerate : the appearance of the specified control.
The control displays Flat- plane. Popup- control plane displayed until the mouse pointer is moved to the control, the control at this time is a three-dimensional appearance. Standard- controls three-dimensional appearance. Control System- appearance is determined by the user's operating system.
ButtonBase.FlatAppearance : get the color appearance of the border and is used to indicate the selected state and mouse state. Only for it to Flat FlatStyle property controls.

C # (winform) add a background image for the button, and remove all kinds of borders

发布了30 篇原创文章 · 获赞 3 · 访问量 889

Guess you like

Origin blog.csdn.net/qq_42697866/article/details/103632527
Recommended