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.
The System.Windows.Forms.VisualStyles namespace contains the following main classes:
System.Windows.Forms.VisualStyles.VisualStyleElement is a foundation class for identifying any control or UI element supported by visual styles. In addition to System.Windows.Forms.VisualStyles.VisualStyleElement itself, the System.Windows.Forms.VisualStyles namespace includes many nested classes of System.Windows.Forms.VisualStyles.VisualStyleElement with static properties that return a System.Windows.Forms.VisualStyles.VisualStyleElement for every state of a control, control part, or other UI element supported by visual styles. For example, the System.Windows.Forms.VisualStyles.VisualStyleElement.Button.PushButton.Pressed property of the System.Windows.Forms.VisualStyles.VisualStyleElement.Button.PushButton class returns a System.Windows.Forms.VisualStyles.VisualStyleElement that identifies a button in the pressed state with visual styles.
System.Windows.Forms.VisualStyles.VisualStyleRenderer provides methods that draw and get information about each System.Windows.Forms.VisualStyles.VisualStyleElement defined by the current visual style of the operating system. Information that can be retrieved about an element includes its default size, background type, and color definitions.
System.Windows.Forms.VisualStyles.VisualStyleInformation provides a set of static properties that provide information about the current visual style of the operating system.
The System.Windows.Forms.VisualStyles namespace also includes a set of enumerations. Some of these enumerations, such as System.Windows.Forms.VisualStyles.PushButtonState and System.Windows.Forms.VisualStyles.ComboBoxState, provide state definitions for related visual style elements. Most of the other enumerations support System.Windows.Forms.VisualStyles.VisualStyleRenderer methods that return information about a particular element. For example, the System.Windows.Forms.VisualStyles.EnumProperty enumeration provides the possible argument values for the System.Windows.Forms.VisualStyles.VisualStyleRenderer.GetEnumValue(System.Windows.Forms.VisualStyles.EnumProperty) method. Finally, the System.Windows.Forms.VisualStyles.VisualStyleState enumeration provides values that define how visual styles are currently applied to the application.
Type | Reason |
---|---|
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 | Documentation for this section has not yet been entered. |
Button+GroupBox | Documentation for this section has not yet been entered. |
Button+PushButton | Documentation for this section has not yet been entered. |
Button+RadioButton | Documentation for this section has not yet been entered. |
Button+UserButton | Documentation for this section has not yet been entered. |
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 | Documentation for this section has not yet been entered. |
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 | Documentation for this section has not yet been entered. |
ExplorerBar+HeaderClose | Documentation for this section has not yet been entered. |
ExplorerBar+HeaderPin | Documentation for this section has not yet been entered. |
ExplorerBar+IEBarMenu | Documentation for this section has not yet been entered. |
ExplorerBar+NormalGroupBackground | Documentation for this section has not yet been entered. |
ExplorerBar+NormalGroupCollapse | Documentation for this section has not yet been entered. |
ExplorerBar+NormalGroupExpand | Documentation for this section has not yet been entered. |
ExplorerBar+NormalGroupHead | Documentation for this section has not yet been entered. |
ExplorerBar+SpecialGroupBackground | Documentation for this section has not yet been entered. |
ExplorerBar+SpecialGroupCollapse | Documentation for this section has not yet been entered. |
ExplorerBar+SpecialGroupExpand | Documentation for this section has not yet been entered. |
ExplorerBar+SpecialGroupHead | Documentation for this section has not yet been entered. |
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 | Documentation for this section has not yet been entered. |
Header+ItemLeft | Documentation for this section has not yet been entered. |
Header+ItemRight | Documentation for this section has not yet been entered. |
Header+SortArrow | Documentation for this section has not yet been entered. |
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 | Documentation for this section has not yet been entered. |
ListView+EmptyText | Documentation for this section has not yet been entered. |
ListView+Group | Documentation for this section has not yet been entered. |
ListView+Item | Documentation for this section has not yet been entered. |
ListView+SortedDetail | Documentation for this section has not yet been entered. |
MarginProperty |
Identifies the margin properties of a visual style element. |
Menu+BarDropDown | Documentation for this section has not yet been entered. |
Menu+BarItem | Documentation for this section has not yet been entered. |
Menu+Chevron | Documentation for this section has not yet been entered. |
Menu+DropDown | Documentation for this section has not yet been entered. |
Menu+Item | Documentation for this section has not yet been entered. |
Menu+Separator | Documentation for this section has not yet been entered. |
MenuBand+NewApplicationButton | Documentation for this section has not yet been entered. |
MenuBand+Separator | Documentation for this section has not yet been entered. |
OffsetType |
Specifies where an offset is applied to a window element. |
Page+Down | Documentation for this section has not yet been entered. |
Page+DownHorizontal | Documentation for this section has not yet been entered. |
Page+Up | Documentation for this section has not yet been entered. |
Page+UpHorizontal | Documentation for this section has not yet been entered. |
PointProperty |
Identifies the point properties of a visual style element. |
ProgressBar+Bar | Documentation for this section has not yet been entered. |
ProgressBar+BarVertical | Documentation for this section has not yet been entered. |
ProgressBar+Chunk | Documentation for this section has not yet been entered. |
ProgressBar+ChunkVertical | Documentation for this section has not yet been entered. |
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 | Documentation for this section has not yet been entered. |
Rebar+Chevron | Documentation for this section has not yet been entered. |
Rebar+ChevronVertical | Documentation for this section has not yet been entered. |
Rebar+Gripper | Documentation for this section has not yet been entered. |
Rebar+GripperVertical | Documentation for this section has not yet been entered. |
ScrollBar+ArrowButton | Documentation for this section has not yet been entered. |
ScrollBar+GripperHorizontal | Documentation for this section has not yet been entered. |
ScrollBar+GripperVertical | Documentation for this section has not yet been entered. |
ScrollBar+LeftTrackHorizontal | Documentation for this section has not yet been entered. |
ScrollBar+LowerTrackVertical | Documentation for this section has not yet been entered. |
ScrollBar+RightTrackHorizontal | Documentation for this section has not yet been entered. |
ScrollBar+SizeBox | Documentation for this section has not yet been entered. |
ScrollBar+ThumbButtonHorizontal | Documentation for this section has not yet been entered. |
ScrollBar+ThumbButtonVertical | Documentation for this section has not yet been entered. |
ScrollBar+UpperTrackVertical | Documentation for this section has not yet been entered. |
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 | Documentation for this section has not yet been entered. |
Spin+DownHorizontal | Documentation for this section has not yet been entered. |
Spin+Up | Documentation for this section has not yet been entered. |
Spin+UpHorizontal | Documentation for this section has not yet been entered. |
StartPanel+LogOff | Documentation for this section has not yet been entered. |
StartPanel+LogOffButtons | Documentation for this section has not yet been entered. |
StartPanel+MorePrograms | Documentation for this section has not yet been entered. |
StartPanel+MoreProgramsArrow | Documentation for this section has not yet been entered. |
StartPanel+PlaceList | Documentation for this section has not yet been entered. |
StartPanel+PlaceListSeparator | Documentation for this section has not yet been entered. |
StartPanel+Preview | Documentation for this section has not yet been entered. |
StartPanel+ProgList | Documentation for this section has not yet been entered. |
StartPanel+ProgListSeparator | Documentation for this section has not yet been entered. |
StartPanel+UserPane | Documentation for this section has not yet been entered. |
StartPanel+UserPicture | Documentation for this section has not yet been entered. |
Status+Bar | Documentation for this section has not yet been entered. |
Status+Gripper | Documentation for this section has not yet been entered. |
Status+GripperPane | Documentation for this section has not yet been entered. |
Status+Pane | Documentation for this section has not yet been entered. |
StringProperty |
Identifies the string properties of a visual style element. |
Tab+Body | Documentation for this section has not yet been entered. |
Tab+Pane | Documentation for this section has not yet been entered. |
Tab+TabItem | Documentation for this section has not yet been entered. |
Tab+TabItemBothEdges | Documentation for this section has not yet been entered. |
Tab+TabItemLeftEdge | Documentation for this section has not yet been entered. |
Tab+TabItemRightEdge | Documentation for this section has not yet been entered. |
Tab+TopTabItem | Documentation for this section has not yet been entered. |
Tab+TopTabItemBothEdges | Documentation for this section has not yet been entered. |
Tab+TopTabItemLeftEdge | Documentation for this section has not yet been entered. |
Tab+TopTabItemRightEdge | Documentation for this section has not yet been entered. |
TabItemState |
Specifies the visual state of a tab item that is drawn with visual styles. |
TaskBand+FlashButton | Documentation for this section has not yet been entered. |
TaskBand+FlashButtonGroupMenu | Documentation for this section has not yet been entered. |
TaskBand+GroupCount | Documentation for this section has not yet been entered. |
Taskbar+BackgroundBottom | Documentation for this section has not yet been entered. |
Taskbar+BackgroundLeft | Documentation for this section has not yet been entered. |
Taskbar+BackgroundRight | Documentation for this section has not yet been entered. |
Taskbar+BackgroundTop | Documentation for this section has not yet been entered. |
Taskbar+SizingBarBottom | Documentation for this section has not yet been entered. |
Taskbar+SizingBarLeft | Documentation for this section has not yet been entered. |
Taskbar+SizingBarRight | Documentation for this section has not yet been entered. |
Taskbar+SizingBarTop | Documentation for this section has not yet been entered. |
TaskbarClock+Time | Documentation for this section has not yet been entered. |
TextBox+Caret | Documentation for this section has not yet been entered. |
TextBox+TextEdit | Documentation for this section has not yet been entered. |
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 | Documentation for this section has not yet been entered. |
ToolBar+DropDownButton | Documentation for this section has not yet been entered. |
ToolBar+SeparatorHorizontal | Documentation for this section has not yet been entered. |
ToolBar+SeparatorVertical | Documentation for this section has not yet been entered. |
ToolBar+SplitButton | Documentation for this section has not yet been entered. |
ToolBar+SplitButtonDropDown | Documentation for this section has not yet been entered. |
ToolBarState |
Specifies the visual state of a toolbar item that is drawn with visual styles. |
ToolTip+Balloon | Documentation for this section has not yet been entered. |
ToolTip+BalloonTitle | Documentation for this section has not yet been entered. |
ToolTip+Close | Documentation for this section has not yet been entered. |
ToolTip+Standard | Documentation for this section has not yet been entered. |
ToolTip+StandardTitle | Documentation for this section has not yet been entered. |
TrackBar+Thumb | Documentation for this section has not yet been entered. |
TrackBar+ThumbBottom | Documentation for this section has not yet been entered. |
TrackBar+ThumbLeft | Documentation for this section has not yet been entered. |
TrackBar+ThumbRight | Documentation for this section has not yet been entered. |
TrackBar+ThumbTop | Documentation for this section has not yet been entered. |
TrackBar+ThumbVertical | Documentation for this section has not yet been entered. |
TrackBar+Ticks | Documentation for this section has not yet been entered. |
TrackBar+TicksVertical | Documentation for this section has not yet been entered. |
TrackBar+Track | Documentation for this section has not yet been entered. |
TrackBar+TrackVertical | Documentation for this section has not yet been entered. |
TrackBarThumbState |
Specifies the visual state of a track bar slider (also known as a thumb) that is drawn with visual styles. |
TrayNotify+AnimateBackground | Documentation for this section has not yet been entered. |
TrayNotify+Background | Documentation for this section has not yet been entered. |
TreeView+Branch | Documentation for this section has not yet been entered. |
TreeView+Glyph | Documentation for this section has not yet been entered. |
TreeView+Item | Documentation for this section has not yet been entered. |
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 | Documentation for this section has not yet been entered. |
VisualStyleElement+ComboBox | Documentation for this section has not yet been entered. |
VisualStyleElement+ExplorerBar | Documentation for this section has not yet been entered. |
VisualStyleElement+Header | Documentation for this section has not yet been entered. |
VisualStyleElement+ListView | Documentation for this section has not yet been entered. |
VisualStyleElement+Menu | Documentation for this section has not yet been entered. |
VisualStyleElement+MenuBand | Documentation for this section has not yet been entered. |
VisualStyleElement+Page | Documentation for this section has not yet been entered. |
VisualStyleElement+ProgressBar | Documentation for this section has not yet been entered. |
VisualStyleElement+Rebar | Documentation for this section has not yet been entered. |
VisualStyleElement+ScrollBar | Documentation for this section has not yet been entered. |
VisualStyleElement+Spin | Documentation for this section has not yet been entered. |
VisualStyleElement+StartPanel | Documentation for this section has not yet been entered. |
VisualStyleElement+Status | Documentation for this section has not yet been entered. |
VisualStyleElement+Tab | Documentation for this section has not yet been entered. |
VisualStyleElement+TaskBand | Documentation for this section has not yet been entered. |
VisualStyleElement+Taskbar | Documentation for this section has not yet been entered. |
VisualStyleElement+TaskbarClock | Documentation for this section has not yet been entered. |
VisualStyleElement+TextBox | Documentation for this section has not yet been entered. |
VisualStyleElement+ToolBar | Documentation for this section has not yet been entered. |
VisualStyleElement+ToolTip | Documentation for this section has not yet been entered. |
VisualStyleElement+TrackBar | Documentation for this section has not yet been entered. |
VisualStyleElement+TrayNotify | Documentation for this section has not yet been entered. |
VisualStyleElement+TreeView | Documentation for this section has not yet been entered. |
VisualStyleElement+Window | Documentation for this section has not yet been entered. |
VisualStyleInformation |
Provides information about the current visual style of the operating system. |
VisualStyleRenderer |
Provides methods for drawing and getting information about a System.Windows.Forms.VisualStyles.VisualStyleElement. This class cannot be inherited. |
VisualStyleState |
Specifies how visual styles are applied to the current application. |
Window+Caption | Documentation for this section has not yet been entered. |
Window+CaptionSizingTemplate | Documentation for this section has not yet been entered. |
Window+CloseButton | Documentation for this section has not yet been entered. |
Window+Dialog | Documentation for this section has not yet been entered. |
Window+FrameBottom | Documentation for this section has not yet been entered. |
Window+FrameBottomSizingTemplate | Documentation for this section has not yet been entered. |
Window+FrameLeft | Documentation for this section has not yet been entered. |
Window+FrameLeftSizingTemplate | Documentation for this section has not yet been entered. |
Window+FrameRight | Documentation for this section has not yet been entered. |
Window+FrameRightSizingTemplate | Documentation for this section has not yet been entered. |
Window+HelpButton | Documentation for this section has not yet been entered. |
Window+HorizontalScroll | Documentation for this section has not yet been entered. |
Window+HorizontalThumb | Documentation for this section has not yet been entered. |
Window+MaxButton | Documentation for this section has not yet been entered. |
Window+MaxCaption | Documentation for this section has not yet been entered. |
Window+MdiCloseButton | Documentation for this section has not yet been entered. |
Window+MdiHelpButton | Documentation for this section has not yet been entered. |
Window+MdiMinButton | Documentation for this section has not yet been entered. |
Window+MdiRestoreButton | Documentation for this section has not yet been entered. |
Window+MdiSysButton | Documentation for this section has not yet been entered. |
Window+MinButton | Documentation for this section has not yet been entered. |
Window+MinCaption | Documentation for this section has not yet been entered. |
Window+RestoreButton | Documentation for this section has not yet been entered. |
Window+SmallCaption | Documentation for this section has not yet been entered. |
Window+SmallCaptionSizingTemplate | Documentation for this section has not yet been entered. |
Window+SmallCloseButton | Documentation for this section has not yet been entered. |
Window+SmallFrameBottom | Documentation for this section has not yet been entered. |
Window+SmallFrameBottomSizingTemplate | Documentation for this section has not yet been entered. |
Window+SmallFrameLeft | Documentation for this section has not yet been entered. |
Window+SmallFrameLeftSizingTemplate | Documentation for this section has not yet been entered. |
Window+SmallFrameRight | Documentation for this section has not yet been entered. |
Window+SmallFrameRightSizingTemplate | Documentation for this section has not yet been entered. |
Window+SmallMaxCaption | Documentation for this section has not yet been entered. |
Window+SmallMinCaption | Documentation for this section has not yet been entered. |
Window+SysButton | Documentation for this section has not yet been entered. |
Window+VerticalScroll | Documentation for this section has not yet been entered. |
Window+VerticalThumb | Documentation for this section has not yet been entered. |