System.Windows.Forms.VisualStyles Namespace

The System.Windows.Forms.VisualStyles namespace contains classes for rendering controls and other Windows user interface (UI) elements with visual styles in operating systems that support them.

Remarks

The System.Windows.Forms.VisualStyles namespace contains the following main classes:

The System.Windows.Forms.VisualStyles namespace also includes a set of enumerations. Some of these enumerations, such as PushButtonState and ComboBoxState, provide state definitions for related visual style elements. Most of the other enumerations support VisualStyleRenderer methods that return information about a particular element. For example, the EnumProperty enumeration provides the possible argument values for the VisualStyleRenderer.GetEnumValue(EnumProperty) method. Finally, the VisualStyleState enumeration provides values that define how visual styles are currently applied to the application.

Classes

TypeReason
BackgroundType

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

BooleanProperty

Identifies the Boolean properties of a visual style element.

BorderType

Specifies the border type of a visual style element with a filled-border background.

Button+CheckBox
Button+GroupBox
Button+PushButton
Button+RadioButton
Button+UserButton
CheckBoxState

Specifies the visual state of a check box that is drawn with visual styles.

ColorProperty

Identifies the color properties of a visual style element.

ComboBox+DropDownButton
ComboBoxState

Specifies the visual state of a combo box that is drawn with visual styles.

ContentAlignment

Specifies how text is aligned in a window caption.

EdgeEffects

Specifies the visual effects that can be applied to the edges of a visual style element.

Edges

Specifies which edges of a visual style element to draw.

EdgeStyle

Specifies the styles that can be applied to the edges of a visual style element.

EnumProperty

Identifies the enumerated type properties of a visual style element.

ExplorerBar+HeaderBackground
ExplorerBar+HeaderClose
ExplorerBar+HeaderPin
ExplorerBar+IEBarMenu
ExplorerBar+NormalGroupBackground
ExplorerBar+NormalGroupCollapse
ExplorerBar+NormalGroupExpand
ExplorerBar+NormalGroupHead
ExplorerBar+SpecialGroupBackground
ExplorerBar+SpecialGroupCollapse
ExplorerBar+SpecialGroupExpand
ExplorerBar+SpecialGroupHead
FilenameProperty

Identifies the names of the image files that are used to draw a visual style element.

FillType

Specifies the interior of visual style elements with a filled border background.

FontProperty

Identifies the font properties of a visual style element.

GlyphFontSizingType

Specifies when the visual style selects a different glyph font size.

GlyphType

Specifies the type of glyph for elements with a bitmap background.

GroupBoxState

Specifies the visual state of a group box that is drawn with visual styles.

Header+Item
Header+ItemLeft
Header+ItemRight
Header+SortArrow
HitTestCode

Describes the location of a point in the background specified by a visual style.

HitTestOptions

Specifies the options that can be used when performing a hit test on the background specified by a visual style.

HorizontalAlign

Specifies the horizontal alignment for visual style elements with a fixed size.

IconEffect

Specifies the visual effect that the visual style will apply to an icon.

ImageOrientation

Specifies how multiple images are arranged in a single image file.

ImageSelectType

Specifies when the visual style selects a different multiple-image file to draw an element.

IntegerProperty

Identifies the integer properties of a visual style element.

ListView+Detail
ListView+EmptyText
ListView+Group
ListView+Item
ListView+SortedDetail
MarginProperty

Identifies the margin properties of a visual style element.

Menu+BarDropDown
Menu+BarItem
Menu+Chevron
Menu+DropDown
Menu+Item
Menu+Separator
MenuBand+NewApplicationButton
MenuBand+Separator
OffsetType

Specifies where an offset is applied to a window element.

Page+Down
Page+DownHorizontal
Page+Up
Page+UpHorizontal
PointProperty

Identifies the point properties of a visual style element.

ProgressBar+Bar
ProgressBar+BarVertical
ProgressBar+Chunk
ProgressBar+ChunkVertical
PushButtonState

Specifies the visual state of a button that is drawn with visual styles.

RadioButtonState

Specifies the visual state of an option button (also known as a radio button) that is drawn with visual styles.

Rebar+Band
Rebar+Chevron
Rebar+ChevronVertical
Rebar+Gripper
Rebar+GripperVertical
ScrollBar+ArrowButton
ScrollBar+GripperHorizontal
ScrollBar+GripperVertical
ScrollBar+LeftTrackHorizontal
ScrollBar+LowerTrackVertical
ScrollBar+RightTrackHorizontal
ScrollBar+SizeBox
ScrollBar+ThumbButtonHorizontal
ScrollBar+ThumbButtonVertical
ScrollBar+UpperTrackVertical
ScrollBarArrowButtonState

Specifies the visual state of a scroll arrow that is drawn with visual styles.

ScrollBarSizeBoxState

Specifies the visual state of a scroll bar sizing handle that is drawn with visual styles.

ScrollBarState

Specifies the visual state of a scroll bar that is drawn with visual styles.

SizingType

Specifies how elements with a bitmap background will adjust to fill a bounds.

Spin+Down
Spin+DownHorizontal
Spin+Up
Spin+UpHorizontal
StartPanel+LogOff
StartPanel+LogOffButtons
StartPanel+MorePrograms
StartPanel+MoreProgramsArrow
StartPanel+PlaceList
StartPanel+PlaceListSeparator
StartPanel+Preview
StartPanel+ProgList
StartPanel+ProgListSeparator
StartPanel+UserPane
StartPanel+UserPicture
Status+Bar
Status+Gripper
Status+GripperPane
Status+Pane
StringProperty

Identifies the string properties of a visual style element.

Tab+Body
Tab+Pane
Tab+TabItem
Tab+TabItemBothEdges
Tab+TabItemLeftEdge
Tab+TabItemRightEdge
Tab+TopTabItem
Tab+TopTabItemBothEdges
Tab+TopTabItemLeftEdge
Tab+TopTabItemRightEdge
TabItemState

Specifies the visual state of a tab item that is drawn with visual styles.

TaskBand+FlashButton
TaskBand+FlashButtonGroupMenu
TaskBand+GroupCount
Taskbar+BackgroundBottom
Taskbar+BackgroundLeft
Taskbar+BackgroundRight
Taskbar+BackgroundTop
Taskbar+SizingBarBottom
Taskbar+SizingBarLeft
Taskbar+SizingBarRight
Taskbar+SizingBarTop
TaskbarClock+Time
TextBox+Caret
TextBox+TextEdit
TextBoxState

Specifies the visual state of a text box that is drawn with visual styles.

TextMetrics

Provides basic information about the font specified by a visual style for a particular element.

TextMetricsCharacterSet

Specifies the character set of the font specified by a visual style for a particular element.

TextMetricsPitchAndFamilyValues

Specifies information about the pitch, technology, and family of the font specified by a visual style for a particular element.

TextShadowType

Specifies the type of shadow to add to text.

ThemeSizeType

Specifies the size of the visual style part to retrieve.

ToolBar+Button
ToolBar+DropDownButton
ToolBar+SeparatorHorizontal
ToolBar+SeparatorVertical
ToolBar+SplitButton
ToolBar+SplitButtonDropDown
ToolBarState

Specifies the visual state of a toolbar item that is drawn with visual styles.

ToolTip+Balloon
ToolTip+BalloonTitle
ToolTip+Close
ToolTip+Standard
ToolTip+StandardTitle
TrackBar+Thumb
TrackBar+ThumbBottom
TrackBar+ThumbLeft
TrackBar+ThumbRight
TrackBar+ThumbTop
TrackBar+ThumbVertical
TrackBar+Ticks
TrackBar+TicksVertical
TrackBar+Track
TrackBar+TrackVertical
TrackBarThumbState

Specifies the visual state of a track bar slider (also known as a thumb) that is drawn with visual styles.

TrayNotify+AnimateBackground
TrayNotify+Background
TreeView+Branch
TreeView+Glyph
TreeView+Item
TrueSizeScalingType

Specifies the scaling type of a visual style element with a fixed size.

VerticalAlignment

Specifies the vertical alignment for visual style elements with a fixed size.

VisualStyleElement

Identifies a control or user interface (UI) element that is drawn with visual styles.

VisualStyleElement+Button
VisualStyleElement+ComboBox
VisualStyleElement+ExplorerBar
VisualStyleElement+Header
VisualStyleElement+ListView
VisualStyleElement+Menu
VisualStyleElement+MenuBand
VisualStyleElement+Page
VisualStyleElement+ProgressBar
VisualStyleElement+Rebar
VisualStyleElement+ScrollBar
VisualStyleElement+Spin
VisualStyleElement+StartPanel
VisualStyleElement+Status
VisualStyleElement+Tab
VisualStyleElement+TaskBand
VisualStyleElement+Taskbar
VisualStyleElement+TaskbarClock
VisualStyleElement+TextBox
VisualStyleElement+ToolBar
VisualStyleElement+ToolTip
VisualStyleElement+TrackBar
VisualStyleElement+TrayNotify
VisualStyleElement+TreeView
VisualStyleElement+Window
VisualStyleInformation

Provides information about the current visual style of the operating system.

VisualStyleRenderer

Provides methods for drawing and getting information about a VisualStyleElement. This class cannot be inherited.

VisualStyleState

Specifies how visual styles are applied to the current application.

Window+Caption
Window+CaptionSizingTemplate
Window+CloseButton
Window+Dialog
Window+FrameBottom
Window+FrameBottomSizingTemplate
Window+FrameLeft
Window+FrameLeftSizingTemplate
Window+FrameRight
Window+FrameRightSizingTemplate
Window+HelpButton
Window+HorizontalScroll
Window+HorizontalThumb
Window+MaxButton
Window+MaxCaption
Window+MdiCloseButton
Window+MdiHelpButton
Window+MdiMinButton
Window+MdiRestoreButton
Window+MdiSysButton
Window+MinButton
Window+MinCaption
Window+RestoreButton
Window+SmallCaption
Window+SmallCaptionSizingTemplate
Window+SmallCloseButton
Window+SmallFrameBottom
Window+SmallFrameBottomSizingTemplate
Window+SmallFrameLeft
Window+SmallFrameLeftSizingTemplate
Window+SmallFrameRight
Window+SmallFrameRightSizingTemplate
Window+SmallMaxCaption
Window+SmallMinCaption
Window+SysButton
Window+VerticalScroll
Window+VerticalThumb