System - Windows.Forms - VisualStyles Namespace
System - Windows.Forms - VisualStyles Namespace
[Link]
BackgroundType
BooleanProperty
BorderType
CheckBoxState
ColorProperty
ComboBoxState
ContentAlignment
EdgeEffects
Edges
EdgeStyle
EnumProperty
FilenameProperty
FillType
FontProperty
GlyphFontSizingType
GlyphType
GroupBoxState
HitTestCode
HitTestOptions
HorizontalAlign
IconEffect
ImageOrientation
ImageSelectType
IntegerProperty
MarginProperty
OffsetType
PointProperty
PushButtonState
RadioButtonState
ScrollBarArrowButtonState
ScrollBarSizeBoxState
ScrollBarState
SizingType
StringProperty
TabItemState
TextBoxState
TextMetrics
Ascent
AverageCharWidth
BreakChar
CharSet
DefaultChar
Descent
DigitizedAspectX
DigitizedAspectY
ExternalLeading
FirstChar
Height
InternalLeading
Italic
LastChar
MaxCharWidth
Overhang
PitchAndFamily
StruckOut
Underlined
Weight
TextMetricsCharacterSet
TextMetricsPitchAndFamilyValues
TextShadowType
ThemeSizeType
ToolBarState
TrackBarThumbState
TrueSizeScalingType
VerticalAlignment
VisualStyleElement
ClassName
CreateElement
Part
State
[Link]
[Link]
CheckedDisabled
CheckedHot
CheckedNormal
CheckedPressed
MixedDisabled
MixedHot
MixedNormal
MixedPressed
UncheckedDisabled
UncheckedHot
UncheckedNormal
UncheckedPressed
[Link]
Disabled
Normal
[Link]
Default
Disabled
Hot
Normal
Pressed
[Link]
CheckedDisabled
CheckedHot
CheckedNormal
CheckedPressed
UncheckedDisabled
UncheckedHot
UncheckedNormal
UncheckedPressed
[Link]
Normal
[Link]
[Link]
Disabled
Hot
Normal
Pressed
[Link]
[Link]
Normal
[Link]
Hot
Normal
Pressed
[Link]
Hot
Normal
Pressed
SelectedHot
SelectedNormal
SelectedPressed
[Link]
Hot
Normal
Pressed
[Link]
Normal
[Link]
Hot
Normal
Pressed
[Link]
Hot
Normal
Pressed
[Link]
Normal
[Link]
Normal
[Link]
Hot
Normal
Pressed
[Link]
Hot
Normal
Pressed
[Link]
Normal
[Link]
[Link]
Hot
Normal
Pressed
[Link]
Hot
Normal
Pressed
[Link]
Hot
Normal
Pressed
[Link]
SortedDown
SortedUp
[Link]
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
Disabled
Hot
Normal
Selected
SelectedNotFocus
[Link]
Normal
[Link]
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
Demoted
Normal
Selected
[Link]
Normal
[Link]
[Link]
Checked
Disabled
Hot
HotChecked
Normal
Pressed
[Link]
Normal
[Link]
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
[Link]
Normal
[Link]
Hot
Normal
Pressed
[Link]
Hot
Normal
Pressed
[Link]
Normal
[Link]
Normal
[Link]
[Link]
DownDisabled
DownHot
DownNormal
DownPressed
LeftDisabled
LeftHot
LeftNormal
LeftPressed
RightDisabled
RightHot
RightNormal
RightPressed
UpDisabled
UpHot
UpNormal
UpPressed
[Link]
Normal
[Link]
Normal
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
LeftAlign
RightAlign
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
[Link]
Normal
[Link]
Hot
Normal
Pressed
[Link]
Normal
[Link]
Hot
Normal
Pressed
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
Normal
Normal
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
[Link]
Normal
[Link]
Normal
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Normal
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Normal
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
[Link]
Normal
[Link]
[Link]
Normal
[Link]
Assist
Disabled
Focused
Hot
Normal
ReadOnly
Selected
[Link]
[Link]
Checked
Disabled
Hot
HotChecked
Normal
Pressed
[Link]
Checked
Disabled
Hot
HotChecked
Normal
Pressed
[Link]
Normal
[Link]
Normal
[Link]
Checked
Disabled
Hot
HotChecked
Normal
Pressed
[Link]
Checked
Disabled
Hot
HotChecked
Normal
Pressed
[Link]
[Link]
Link
Normal
[Link]
Normal
[Link]
Hot
Normal
Pressed
[Link]
Link
Normal
[Link]
Normal
[Link]
[Link]
Disabled
Focused
Hot
Normal
Pressed
[Link]
Disabled
Focused
Hot
Normal
Pressed
[Link]
Disabled
Focused
Hot
Normal
Pressed
[Link]
Disabled
Disabled
Focused
Hot
Normal
Pressed
[Link]
Disabled
Focused
Hot
Normal
Pressed
[Link]
Disabled
Focused
Hot
Normal
Pressed
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
Normal
[Link]
[Link]
Normal
[Link]
Normal
[Link]
[Link]
Normal
[Link]
Closed
Opened
[Link]
Disabled
Hot
Normal
Selected
SelectedNotFocus
[Link]
[Link]
Active
Disabled
Inactive
[Link]
Normal
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Normal
[Link]
Active
Inactive
[Link]
Normal
[Link]
Active
Inactive
[Link]
Normal
Normal
[Link]
Active
Inactive
[Link]
Normal
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Active
Disabled
Inactive
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Active
Disabled
Inactive
[Link]
Disabled
Disabled
Hot
Normal
Pressed
[Link]
Active
Disabled
Inactive
[Link]
Normal
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Active
Inactive
[Link]
Normal
[Link]
Active
Inactive
[Link]
Normal
[Link]
Active
Inactive
[Link]
Normal
[Link]
Active
Disabled
Inactive
[Link]
Active
Disabled
Inactive
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
[Link]
Disabled
Hot
Normal
Pressed
VisualStyleInformation
Author
ColorScheme
Company
ControlHighlightHot
Copyright
Description
DisplayName
IsEnabledByUser
IsSupportedByOS
MinimumColorDepth
Size
SupportsFlatMenus
TextControlBorder
Url
Version
VisualStyleRenderer
Class
DrawBackground
DrawEdge
DrawImage
DrawParentBackground
DrawText
GetBackgroundContentRectangle
GetBackgroundExtent
GetBackgroundRegion
GetBoolean
GetColor
GetEnumValue
GetFilename
GetFont
GetInteger
GetMargins
GetPartSize
GetPoint
GetString
GetTextExtent
GetTextMetrics
Handle
HitTestBackground
IsBackgroundPartiallyTransparent
IsElementDefined
IsSupported
LastHResult
Part
SetParameters
State
VisualStyleRenderer
VisualStyleState
[Link] Namespace
The [Link] namespace contains classes for rendering controls and other Windows user
interface (UI) elements with visual styles in operating systems that support them.
Introduction
The [Link] namespace contains the following main classes:
VisualStyleElement is a foundation class for identifying any control or UI element supported by visual styles. In
addition to VisualStyleElement itself, the [Link] namespace includes many nested
classes of VisualStyleElement with static properties that return a VisualStyleElement for every state of a control,
control part, or other UI element supported by visual styles. For example, the Pressed property of the
[Link] class returns a VisualStyleElement that identifies a button in the pressed state
with visual styles.
VisualStyleRenderer provides methods that draw and get information about each 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.
VisualStyleInformation provides a set of static properties that provide information about the current visual style of
the operating system.
The [Link] 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 GetEnumValue method.
Finally, the VisualStyleState enumeration provides values that define how visual styles are currently applied to the
application.
Classes
VisualStyleElement
Identifies a control or user interface (UI) element that is drawn
with visual styles.
[Link]
Contains classes that provide VisualStyleElement objects for
button-related controls. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for the different states of
the check box control. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for the different states of
the group box control. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for the different states of
the button control. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for the different states of
the radio button control. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a user button. This class
cannot be inherited.
[Link]
Contains a class that provides VisualStyleElement objects for
the drop-down arrow of the combo box control. This class
cannot be inherited.
[Link]
Provides VisualStyleElement objects for the different states of
the drop-down arrow of the combo box control. This class
cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
each part of the Explorer Bar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the background of the
Explorer Bar. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
Close button of the Explorer Bar. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the Auto
Hide button (which is displayed as a push pin) of the Explorer
Bar. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
expanded-menu arrow of the Explorer Bar. This class cannot
be inherited.
[Link]
Provides a VisualStyleElement for the background of a
common group of items in the Explorer Bar. This class cannot
be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
collapse button of a common group of items in the Explorer
Bar. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
expand button of a common group of items in the Explorer
Bar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the title bar of a common
group of items in the Explorer Bar. This class cannot be
inherited.
[Link]
Provides a VisualStyleElement for the background of a special
group of items in the Explorer Bar. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the
collapse button of a special group of items in the Explorer Bar.
This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
expand button of a special group of items in the Explorer Bar.
This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the title bar of a special
group of items in the Explorer Bar. This class cannot be
inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
each part of the header control. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of an item
of the header control. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
leftmost item of the header control. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the
rightmost item of the header control. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for the sort arrow of a
header item. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of the list view control. This class cannot be
inherited.
[Link]
Provides a VisualStyleElement for a list view in detail view. This
class cannot be inherited.
[Link]
Provides a VisualStyleElement for the text area of a list view
that contains no items. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a list view item group. This
class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of an item
of the list view control. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a sorted list view control in
detail view This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of a menu. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the drop-down arrow of a
menu bar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a menu bar item. This class
cannot be inherited.
[Link]
Provides a VisualStyleElement for the chevron of a menu. This
class cannot be inherited.
[Link]
Provides a VisualStyleElement for the drop-down arrow of a
menu. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a menu
item. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a menu item separator. This
class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of a menu band. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the new
application button of a menu band. This class cannot be
inherited.
[Link]
Provides a VisualStyleElement for a menu band separator. This
class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of a page. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a down
indicator in an up-down or spin box control. This class cannot
be inherited.
[Link]
Provides VisualStyleElement objects for each state of a page
backward indicator in a pager control. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of a page
up indicator of an up-down or spin box control. This class
cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a page
forward indicator of a pager control. This class cannot be
inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of the progress bar control. This class cannot be
inherited.
[Link]
Provides a VisualStyleElement for the frame of a horizontal
progress bar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the frame of a vertical
progress bar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the pieces that fill a
horizontal progress bar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the pieces that fill a vertical
progress bar. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of the rebar control. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a rebar band. This class
cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a
horizontal chevron. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a
chevron. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the gripper bar of a
horizontal rebar control. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the gripper bar of a vertical
rebar. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of the scroll bar control. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state and
direction of a scroll arrow. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the grip of a horizontal scroll
box (also known as the thumb). This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the grip of a vertical scroll
box (also known as the thumb). This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the left
part of a horizontal scroll bar track. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the lower
part of a vertical scroll bar track. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the right
part of a horizontal scroll bar track. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the sizing
handle of a scroll bar. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a
horizontal scroll box (also known as the thumb). This class
cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a vertical
scroll box (also known as the thumb). This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the
upper part of a vertical scroll bar track. This class cannot be
inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the arrows of a spin button control (also known as an up-
down control). This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
downward-pointing arrow for a spin button control (also
known as an up-down control). This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the left-
pointing arrow for a spin button control (also known as an up-
down control). This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
upward-pointing arrow for a spin button control (also known
as an up-down control). This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the right-
pointing arrow for a spin button control (also known as an up-
down control). This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of the Start menu. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the bottom border of the
Start menu. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the Log
Off and Shut Down buttons in the Start menu. This class
cannot be inherited.
[Link]
Provides a VisualStyleElement for the background of the All
Programs item in the Start menu. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the All
Programs arrow in the Start menu. This class cannot be
inherited.
[Link]
Provides a VisualStyleElement for the background of the right
side of the Start menu. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the bar that separates
groups of items in the right side of the Start menu. This class
cannot be inherited.
[Link]
Provides a VisualStyleElement for the preview area of the Start
menu. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the background of the left
side of the Start menu. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the bar that separates
groups of items in the left side of the Start menu. This class
cannot be inherited.
[Link]
Provides a VisualStyleElement for the top border of the Start
menu. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the background of the user
picture on the Start menu. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of the status bar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the background of the
status bar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the grip of the status bar.
This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the pane of the grip in the
status bar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a status bar pane. This class
cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of a tab control. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the interior of a tab control
page. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the border of a tab control
page. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a tab
control that shares its top, left, and right borders with other
tab controls. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a tab control that shares its
top border with another tab control. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of a tab
control that shares its top and right borders with other tab
controls. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a tab
control that shares its top and left borders with other tab
controls. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a tab
control that shares its bottom, left, and right borders with
other tab controls. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a tab control that shares its
bottom border with another tab control. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of a tab
control that shares its bottom and right borders with other
tab controls. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a tab
control that shares its bottom and left borders with other tab
controls. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
parts of the taskbar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a flashing window button in
the taskbar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a flashing menu item of a
window button in the taskbar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a group counter of the
taskbar. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of the taskbar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the background of a taskbar
that is docked on the bottom of the screen. This class cannot
be inherited.
[Link]
Provides a VisualStyleElement for the background of a taskbar
that is docked on the left side of the screen. This class cannot
be inherited.
[Link]
Provides a VisualStyleElement for the background of a taskbar
that is docked on the right side of the screen. This class cannot
be inherited.
[Link]
Provides a VisualStyleElement for the background of a taskbar
that is docked on the top of the screen. This class cannot be
inherited.
[Link]
Provides a VisualStyleElement for the sizing bar of a taskbar
that is docked on the bottom of the screen. This class cannot
be inherited.
[Link]
Provides a VisualStyleElement for the sizing bar of a taskbar
that is docked on the left side of the screen. This class cannot
be inherited.
[Link]
Provides a VisualStyleElement for the sizing bar of a taskbar
that is docked on the right side of the screen. This class cannot
be inherited.
[Link]
Provides a VisualStyleElement for the sizing bar of a taskbar
that is docked on the top of the screen. This class cannot be
inherited.
[Link]
Contains a class that provides a VisualStyleElement for the
background of the taskbar clock. This class cannot be
inherited.
[Link]
Provides a VisualStyleElement for the background of the
taskbar clock. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of a text box. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the caret of a text box. This
class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a text
box. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of a toolbar. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a toolbar
button. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of a drop-
down toolbar button. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a horizontal separator of the
toolbar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a vertical separator of the
toolbar. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
regular button portion of a combined regular button and
drop-down button. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the drop-
down portion of a combined regular button and drop-down
button. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of a ToolTip. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for a balloon ToolTip. This
class cannot be inherited.
[Link]
Provides a VisualStyleElement for the title area of a balloon
ToolTip. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
Close button of a ToolTip. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for a standard ToolTip.
This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the title area of a standard
ToolTip. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of the track bar control. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the slider
(also known as the thumb) of a horizontal track bar. This class
cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
downward-pointing track bar slider (also known as the
thumb). This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the left-
pointing track bar slider (also known as the thumb). This class
cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the right-
pointing track bar slider (also known as the thumb). This class
cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
upward-pointing track bar slider (also known as the thumb).
This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the slider
(also known as the thumb) of a vertical track bar. This class
cannot be inherited.
[Link]
Provides a VisualStyleElement for a single tick of a horizontal
track bar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for a single tick of a vertical
track bar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the track for a horizontal
track bar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the track for a vertical track
bar. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the background of the notification area, which is located at the
far right of the taskbar. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for an animated background of
the notification area. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the background of the
notification area. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of the tree view control. This class cannot be
inherited.
[Link]
Provides a VisualStyleElement for a tree view branch. This class
cannot be inherited.
[Link]
Provides VisualStyleElement objects for the plus sign (+) and
minus sign (-) buttons of a tree view control. This class cannot
be inherited.
[Link]
Provides VisualStyleElement objects for each state of a tree
view item. This class cannot be inherited.
[Link]
Contains classes that provide VisualStyleElement objects for
the parts of a window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the title
bar of a window. This class cannot be inherited.
[Link]
Provides a VisualStyleElement that represents the sizing
template of the title bar of a window. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the
Close button of a window. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the background of a dialog
box. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
bottom border of a window. This class cannot be inherited.
[Link]
Provides a VisualStyleElement that represents the sizing
template of the bottom border of a window. This class cannot
be inherited.
[Link]
Provides VisualStyleElement objects for each state of the left
border of a window. This class cannot be inherited.
[Link]
Provides a VisualStyleElement that represents the sizing
template of the left border of a window. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the right
border of a window. This class cannot be inherited.
[Link]
Provides a VisualStyleElement that represents the sizing
template of the right border of a window. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the Help
button of a window or dialog box. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the
horizontal scroll bar of a window. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the
horizontal scroll box (also known as the thumb) of a window.
This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
Maximize button of a window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the title
bar of a maximized window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
Close button of a multiple-document interface (MDI) child
window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the Help
button of a multiple-document interface (MDI) child window.
This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
Minimize button of a multiple-document interface (MDI) child
window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
Restore button of a multiple-document interface (MDI) child
window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
System button of a multiple-document interface (MDI) child
window with visual styles. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
Minimize button of a window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the title
bar of a minimized window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
Restore button of a window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the title
bar of a small window. This class cannot be inherited.
[Link]
Provides a VisualStyleElement that represents the sizing
template of the title bar of a small window. This class cannot
be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
Close button of a small window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
bottom border of a small window. This class cannot be
inherited.
[Link]
Provides a VisualStyleElement that represents the sizing
template of the bottom border of a small window. This class
cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the left
border of a small window. This class cannot be inherited.
[Link]
Provides a VisualStyleElement that represents the sizing
template of the left border of a small window. This class cannot
be inherited.
[Link]
Provides VisualStyleElement objects for each state of the right
border of a small window. This class cannot be inherited.
[Link]
Provides a VisualStyleElement for the sizing template of the
right border of a small window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the title
bar of a maximized small window. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the title
bar of a minimized small window. This class cannot be
inherited.
[Link]
Provides VisualStyleElement objects for each state of the
System button of a window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
vertical scroll bar of a window. This class cannot be inherited.
[Link]
Provides VisualStyleElement objects for each state of the
vertical scroll box (also known as the thumb) of a window. This
class cannot be inherited.
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.
Structs
TextMetrics
Provides basic information about the font specified by a visual
style for a particular element.
Enums
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.
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.
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.
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.
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.
MarginProperty
Identifies the margin properties of a visual style element.
OffsetType
Specifies where an offset is applied to a window element.
PointProperty
Identifies the point properties of a visual style element.
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.
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.
StringProperty
Identifies the string properties of a visual style element.
TabItemState
Specifies the visual state of a tab item that is drawn with visual
styles.
TextBoxState
Specifies the visual state of a text box that is drawn with visual
styles.
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.
ToolBarState
Specifies the visual state of a toolbar item that is drawn with
visual styles.
TrackBarThumbState
Specifies the visual state of a track bar slider (also known as a
thumb) that is drawn with visual styles.
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.
VisualStyleState
Specifies how visual styles are applied to the current
application.
BackgroundType BackgroundType Enum
Specifies the source of a visual style element's background.
D eclaration
public enum BackgroundType
type BackgroundType =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The background of a visual style element can be a bitmap image, a filled rectangle, or nothing. The BackgroundType
values represent the return values of the GetEnumValue method when it is called with an argument value of
[Link].
Fields
BorderFill The background of the element is a rectangle filled with a color or pattern.
BorderFill
ImageFile The background of the element is a bitmap. If this value is set, then the property corresponding to the
ImageFile ImageFile value will contain the name of a valid image file.
D eclaration
public enum BooleanProperty
type BooleanProperty =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The BooleanProperty enumeration represents a set of Boolean properties that describe visual style elements. The
BooleanProperty values are used as an argument in the GetBoolean method to specify which property value to retrieve
for the element that the VisualStyleRenderer currently represents.
Fields
AlwaysShowSizingBar AlwaysShowSizingBar The sizing handle will always be displayed.
AutoSize AutoSize The width of nonclient captions varies with the extent of the text.
GlyphOnly GlyphOnly Only the glyph should be drawn, not the background.
IntegralSizing IntegralSizing The scaling factor must be an integer for fixed-size elements.
SourceShrink SourceShrink The source image will scale smaller when needed.
D eclaration
public enum BorderType
type BorderType =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The BorderType values represent the return values of the GetEnumValue method when it is called with an argument
value of [Link].
Fields
Ellipse Ellipse An elliptical border.
D eclaration
public enum CheckBoxState
type CheckBoxState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The CheckBoxState values correspond to the states of the VisualStyleElement objects exposed by the
[Link] class. The CheckBoxState values are also used as an argument in the
[Link] method.
Fields
CheckedDisabled CheckedDisabled The check box is checked and disabled.
D eclaration
public enum ColorProperty
type ColorProperty =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The ColorProperty enumeration represents a set of color properties that describe visual style elements. The
ColorProperty values are used as an argument in the [Link] method to specify which property
value to retrieve for the element that the VisualStyleRenderer currently represents.
Fields
AccentColorHint AccentColorHint A recommended companion color for the accent color of the visual
style.
BorderColorHint BorderColorHint A recommended companion color for the border color of the visual
style.
D eclaration
public enum ComboBoxState
type ComboBoxState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The ComboBoxState values correspond to the states of the VisualStyleElement objects exposed by the
[Link] class. The ComboBoxState values are also used as an argument in
the [Link] and [Link] methods.
Fields
Disabled Disabled The combo box is disabled.
D eclaration
public enum ContentAlignment
type ContentAlignment =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The ContentAlignment values represent the return values of the [Link] method when it is
called with an argument value of [Link].
Fields
Center Center The text is centered.
D eclaration
[[Link]]
public enum EdgeEffects
type EdgeEffects =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The EdgeEffects values are used as argument values in the [Link] method.
Fields
FillInterior FillInterior The area within the element borders is filled.
D eclaration
[[Link]]
public enum Edges
type Edges =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The Edges values are used as argument values in the [Link] method.
Fields
Bottom Bottom The bottom edge of the element.
D eclaration
public enum EdgeStyle
type EdgeStyle =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The EdgeStyle values are used as argument values in the [Link] method.
Fields
Bump Bump The edges are drawn to appear raised on the outside and sunken on the inside.
Etched Etched The edges are drawn to appear sunken on the outside and raised on the inside.
Raised Raised The edges are drawn to make the element seem raised.
Sunken Sunken The edges are drawn to make the element seem sunken.
EnumProperty EnumProperty Enum
Identifies the enumerated type properties of a visual style element.
D eclaration
public enum EnumProperty
type EnumProperty =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The EnumProperty enumeration represents a set of enumerated properties that describe visual style elements. The
EnumProperty values are used as an argument in the [Link] method to specify which
property value to retrieve for the element that the VisualStyleRenderer currently represents.
Fields
BackgroundType One of the BackgroundType values that specifies how the element's background is drawn.
BackgroundType
BorderType BorderType One of the BorderType values that specifies the border type for elements with a filled-
border background.
ContentAlignment One of the ContentAlignment values that specifies how text is aligned in a window
ContentAlignment caption.
FillType FillType One of the FillType values that specifies the fill type for elements with a filled-border
background.
GlyphFontSizingType One of the GlyphFontSizingType values that specifies when the visual style selects a
GlyphFontSizingType different glyph font size.
GlyphType GlyphType One of the GlyphType values that specifies the type of glyph for elements with a bitmap
background.
HorizontalAlignment One of the HorizontalAlign values that specifies the horizontal alignment for elements
HorizontalAlignment with a fixed size.
IconEffect IconEffect One of the IconEffect values that specifies the effect that the visual style will apply to an
icon.
ImageLayout ImageLayout One of the ImageOrientation values that specifies how multiple images are arranged in a
single image file.
ImageSelectType One of the ImageSelectType values that specifies when the visual style selects a different
ImageSelectType multiple-image file to draw an element.
OffsetType OffsetType One of the OffsetType values that specifies where an offset is applied to a window
element.
SizingType SizingType One of the SizingType values that specifies how elements with a bitmap background will
adjust to fill the bounds.
TextShadowType One of the TextShadowType values that specifies the type of shadow to add to text.
TextShadowType
TrueSizeScalingType One of the TrueSizeScalingType values that specifies when the visual style rescales an
TrueSizeScalingType element with a fixed size.
VerticalAlignment One of the VerticalAlignment values that specifies the vertical alignment for elements
VerticalAlignment with a fixed size.
FilenameProperty FilenameProperty Enum
Identifies the names of the image files that are used to draw a visual style element.
D eclaration
public enum FilenameProperty
type FilenameProperty =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The FilenameProperty enumeration represents the names of image files that are used to draw visual style elements.
The FilenameProperty values are used as an argument in the [Link] method to specify
which file name property to retrieve for the element that the VisualStyleRenderer currently represents.
Fields
GlyphImageFile GlyphImageFile The name of the glyph image file.
D eclaration
public enum FillType
type FillType =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The FillType values represent the return values of the [Link] method when it is called
with an argument value of [Link].
Fields
HorizontalGradient HorizontalGradient The interior of the element is a horizontal gradient.
D eclaration
public enum FontProperty
type FontProperty =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The FontProperty enumeration represents a set of font properties that describe visual style elements. The
FontProperty values are used as an argument in the [Link] method to specify which property
value to retrieve for the element that the VisualStyleRenderer currently represents.
Fields
GlyphFont GlyphFont The font that a glyph is drawn with.
GlyphFontSizingType GlyphFontSizingType Enum
Specifies when the visual style selects a different glyph font size.
D eclaration
public enum GlyphFontSizingType
type GlyphFontSizingType =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The GlyphFontSizingType values represent the return values of the [Link] method when
it is called with an argument value of [Link].
Fields
Dpi Dpi Glyph font size changes are based on dots per inch (DPI) settings.
Size Size Glyph font size changes are based on font size settings.
GlyphType GlyphType Enum
Specifies the type of glyph for elements with a bitmap background.
D eclaration
public enum GlyphType
type GlyphType =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The GlyphType values represent the return values of the [Link] method when it is called
with an argument value of [Link].
Fields
FontGlyph FontGlyph The glyph is a font.
D eclaration
public enum GroupBoxState
type GroupBoxState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The GroupBoxState values correspond to the states of the VisualStyleElement objects exposed by the
[Link] class. The GroupBoxState values are also used as an argument in the
[Link] method.
Fields
Disabled Disabled The group box is disabled.
D eclaration
public enum HitTestCode
type HitTestCode =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The HitTestCode values represent the return values of the [Link] method.
Fields
Bottom Bottom The hit test succeeded in the bottom border segment.
BottomLeft BottomLeft The hit test succeeded in the bottom and left border intersection.
BottomRight BottomRight The hit test succeeded in the bottom and right border intersection.
Client Client The hit test succeeded in the middle background segment.
Left Left The hit test succeeded in the left border segment.
Nowhere Nowhere The hit test succeeded outside the control or on a transparent area.
Right Right The hit test succeeded in the right border segment.
Top Top The hit test succeeded in the top border segment.
TopLeft TopLeft The hit test succeeded in the top and left border intersection.
TopRight TopRight The hit test succeeded in the top and right border intersection.
HitTestOptions HitTestOptions Enum
Specifies the options that can be used when performing a hit test on the background specified by a visual style.
D eclaration
[[Link]]
public enum HitTestOptions
type HitTestOptions =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The HitTestOptions values are used as an argument in the [Link] method.
Fields
BackgroundSegment The hit test option for the background segment.
BackgroundSegment
ResizingBorderBottom The hit test option for the bottom resizing border.
ResizingBorderBottom
ResizingBorderLeft The hit test option for the left resizing border.
ResizingBorderLeft
ResizingBorderRight The hit test option for the right resizing border.
ResizingBorderRight
ResizingBorderTop The hit test option for the top resizing border.
ResizingBorderTop
SizingTemplate The resizing border is specified as a template, not just window edges. This option is mutually
SizingTemplate exclusive with SystemSizingMargins; SizingTemplate takes precedence.
SystemSizingMargins The system resizing border width is used instead of visual style content margins. This option is
SystemSizingMargins mutually exclusive with SizingTemplate; SizingTemplate takes precedence.
HorizontalAlign HorizontalAlign Enum
Specifies the horizontal alignment for visual style elements with a fixed size.
D eclaration
public enum HorizontalAlign
type HorizontalAlign =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The HorizontalAlign values represent the return values of the [Link] method when it is
called with an argument value of [Link].
Fields
Center Center The element is centered horizontally.
D eclaration
public enum IconEffect
type IconEffect =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The IconEffect values represent the return values of the [Link] method when it is called
with an argument value of [Link].
Fields
Alpha Alpha The icon is alpha-blended.
D eclaration
public enum ImageOrientation
type ImageOrientation =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The ImageOrientation values represent the return values of the [Link] method when it is
called with an argument value of [Link].
Fields
Horizontal Horizontal Images are arranged horizontally in the multiple-image file.
D eclaration
public enum ImageSelectType
type ImageSelectType =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
A visual style can define up to five multiple-image files for an element. These image files are specified by the
FilenameProperty values ImageFile1 through ImageFile5. The ImageSelectType values indicate when the visual style
selects a different image file to draw the element.
The ImageSelectType values represent the return values of the [Link] method when it is
called with an argument value of [Link].
Fields
Dpi Dpi Image file changes are based on dots per inch (DPI) settings.
D eclaration
public enum IntegerProperty
type IntegerProperty =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The IntegerProperty enumeration represents a set of integer properties that describe visual style elements. The
IntegerProperty values are used as an argument in the [Link] method to specify which
property value to retrieve for the element that the VisualStyleRenderer currently represents.
Fields
AlphaLevel AlphaLevel The alpha value for an icon, between 0 and 255.
AlphaThreshold The minimum alpha value of a solid pixel, between 0 and 255.
AlphaThreshold
BorderSize BorderSize The size of the border line for elements with a filled-border background.
GlyphIndex GlyphIndex The index into the font for font-based glyphs.
GradientRatio1 The amount of GradientColor1 to use in a color gradient. The sum of the five
GradientRatio1 GradientRatio properties must equal 255.
GradientRatio2 The amount of GradientColor2 to use in a color gradient. The sum of the five
GradientRatio2 GradientRatio properties must equal 255.
GradientRatio3 The amount of GradientColor3 to use in a color gradient. The sum of the five
GradientRatio3 GradientRatio properties must equal 255.
GradientRatio4 The amount of GradientColor4 to use in a color gradient. The sum of the five
GradientRatio4 GradientRatio properties must equal 255.
GradientRatio5 The amount of GradientColor5 to use in a color gradient. The sum of the five
GradientRatio5 GradientRatio properties must equal 255.
MinDpi1 MinDpi1 The minimum dots per inch (DPI) that ImageFile1 was designed for.
MinDpi2 MinDpi2 The minimum DPI that ImageFile2 was designed for.
MinDpi3 MinDpi3 The minimum DPI that ImageFile3 was designed for.
MinDpi4 MinDpi4 The minimum DPI that ImageFile4 was designed for.
MinDpi5 MinDpi5 The minimum DPI that ImageFile5 was designed for.
RoundCornerHeight A percentage value that represents the height of a rounded corner, from 0 to 100.
RoundCornerHeight
RoundCornerWidth A percentage value that represents the width of a rounded corner, from 0 to 100.
RoundCornerWidth
Saturation Saturation The amount of saturation for an image, between 0 and 255.
TrueSizeStretchMark A percentage value indicating how far a fixed-size element will stretch when the target
TrueSizeStretchMark exceeds the source.
D eclaration
public enum MarginProperty
type MarginProperty =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The MarginProperty enumeration represents a set of margin properties that describe the placement of visual style
elements. The MarginProperty values are used as an argument in the [Link] method to
specify which property value to retrieve for the element that the VisualStyleRenderer currently represents.
Fields
CaptionMargins CaptionMargins Specifies where caption text can be placed.
D eclaration
public enum OffsetType
type OffsetType =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The OffsetType values represent the return values of the [Link] method when it is called
with an argument value of [Link].
Fields
AboveLastButton AboveLastButton The offset is applied from above the last button.
BelowLastButton BelowLastButton The offset is applied from below the last button.
BottomLeft BottomLeft The offset is applied from the bottom left of the element.
BottomMiddle BottomMiddle The offset is applied from the bottom middle of the element.
BottomRight BottomRight The offset is applied from the bottom right of the element.
LeftOfCaption LeftOfCaption The offset is applied from the left of the caption.
LeftOfLastButton LeftOfLastButton The offset is applied from the left of the last button.
MiddleLeft MiddleLeft The offset is applied from the middle left of the element.
MiddleRight MiddleRight The offset is applied from the middle right of the element.
RightOfCaption RightOfCaption The offset is applied from the right of the caption.
RightOfLastButton RightOfLastButton The offset is applied from the right of the last button.
TopLeft TopLeft The offset is applied from the top left of the element.
TopMiddle TopMiddle The offset is applied from the top middle of the element.
TopRight TopRight The offset is applied from the top right of the element.
PointProperty PointProperty Enum
Identifies the point properties of a visual style element.
D eclaration
public enum PointProperty
type PointProperty =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The PointProperty enumeration represents a set of point properties that describe visual style elements. The
PointProperty values are used as an argument in the [Link] method to specify which property
value to retrieve for the element that the VisualStyleRenderer currently represents.
Fields
MinSize MinSize The smallest bounds that the image specified by the ImageFile value was designed
for.
MinSize1 MinSize1 The smallest bounds that the image specified by the ImageFile1 value was
designed for.
MinSize2 MinSize2 The smallest bounds that the image specified by the ImageFile2 value was
designed for.
MinSize3 MinSize3 The smallest bounds that the image specified by the ImageFile3 value was
designed for.
MinSize4 MinSize4 The smallest bounds that the image specified by the ImageFile4 value was
designed for.
MinSize5 MinSize5 The smallest bounds that the image specified by the ImageFile5 value was
designed for.
D eclaration
public enum PushButtonState
type PushButtonState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The PushButtonState values correspond to the states of the VisualStyleElement objects exposed by the
[Link] class. The PushButtonState values are also used as an argument in the
[Link] method.
Fields
Default Default The button has the default appearance.
D eclaration
public enum RadioButtonState
type RadioButtonState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The RadioButtonState values correspond to the states of the VisualStyleElement objects exposed by the
[Link] class. The RadioButtonState values are also used as an argument in the
[Link] method.
Fields
CheckedDisabled CheckedDisabled The option button is checked and disabled.
D eclaration
public enum ScrollBarArrowButtonState
type ScrollBarArrowButtonState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The ScrollBarArrowButtonState values correspond to the states of the VisualStyleElement objects exposed by the
[Link] class. The ScrollBarArrowButtonState values are also used as an argument
in the [Link] method.
Fields
DownDisabled DownDisabled The scroll arrow points down and is disabled.
D eclaration
public enum ScrollBarSizeBoxState
type ScrollBarSizeBoxState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The ScrollBarSizeBoxState values correspond to the states of the VisualStyleElement objects exposed by the
[Link] class. The ScrollBarSizeBoxState values are also used as an argument in the
[Link] method.
Fields
LeftAlign LeftAlign The sizing handle is aligned to the left.
D eclaration
public enum ScrollBarState
type ScrollBarState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The ScrollBarState values correspond to the states of the VisualStyleElement objects exposed by the following classes:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
The ScrollBarState values are also used as an argument in the [Link] class
methods that draw the scroll bar track, scroll box (also known as the thumb), and scroll box grip.
Fields
Disabled Disabled The scroll bar element is disabled.
D eclaration
public enum SizingType
type SizingType =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The SizingType values represent the return values of the [Link] method when it is called
with an argument value of [Link].
Fields
FixedSize FixedSize The element cannot be resized.
Tile Tile The background image repeats the pattern to fill the bounds.
StringProperty StringProperty Enum
Identifies the string properties of a visual style element.
D eclaration
public enum StringProperty
type StringProperty =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The StringProperty enumeration represents a set of string properties that describe visual style elements. The
StringProperty values are used as an argument in the [Link] method to specify which property
value to retrieve for the element that the VisualStyleRenderer currently represents.
Fields
Text Text The text that will be displayed with the element.
TabItemState TabItemState Enum
Specifies the visual state of a tab item that is drawn with visual styles.
D eclaration
public enum TabItemState
type TabItemState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The TabItemState values correspond to the states of the VisualStyleElement objects exposed by the following classes:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
The TabItemState values are also used as an argument in the [Link] method.
Fields
Disabled Disabled The tab item is disabled.
D eclaration
public enum TextBoxState
type TextBoxState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The TextBoxState values correspond to the states of the VisualStyleElement objects exposed by the
[Link] class. The TextBoxState values are also used as an argument in the
[Link] method.
Fields
Assist Assist The text box appears in assist mode.
D eclaration
public struct TextMetrics
type TextMetrics = struct
I nheritance H ierarchy
Object Object
ValueType ValueType
Remarks
The TextMetrics structure specifies the return values of the [Link] method.
Properties
Ascent
Ascent
AverageCharWidth
AverageCharWidth
BreakChar
BreakChar
Gets or sets the character used to define word breaks for text justification.
CharSet
CharSet
DefaultChar
DefaultChar
Gets or sets the character to be substituted for characters not in the font.
Descent
Descent
Gets or sets the descent of characters in the font.
DigitizedAspectX
DigitizedAspectX
Gets or sets the horizontal aspect of the device for which the font was designed.
DigitizedAspectY
DigitizedAspectY
Gets or sets the vertical aspect of the device for which the font was designed.
ExternalLeading
ExternalLeading
Gets or sets the amount of extra leading that the application adds between rows.
FirstChar
FirstChar
Height
Height
InternalLeading
InternalLeading
Gets or sets the amount of leading inside the bounds set by the Height property.
Italic
Italic
LastChar
LastChar
MaxCharWidth
MaxCharWidth
Overhang
Overhang
Gets or sets the extra width per string that may be added to some synthesized fonts.
PitchAndFamily
PitchAndFamily
Gets or sets information about the pitch, technology, and family of a physical font.
StruckOut
StruckOut
Gets or sets a value indicating whether the font specifies a horizontal line through the characters.
Underlined
Underlined
Weight
Weight
Returns
Int32 Int32
The ascent of characters in the font.
Remarks
The ascent is the distance a character extends above the base line.
[Link] [Link]
Width
I n this Article
Gets or sets the average width of characters in the font.
Returns
Int32 Int32
The average width of characters in the font.
Remarks
The average character width is generally defined as the width of the letter "x". This value does not include the overhang
required for bold or italic characters.
[Link] [Link]
I n this Article
Gets or sets the character used to define word breaks for text justification.
public char BreakChar { get; set; }
member [Link] : char with get, set
Returns
Char Char
The character used to define word breaks for text justification.
[Link] [Link]
I n this Article
Gets or sets the character set of the font.
public [Link] CharSet { get; set; }
member [Link] : [Link] with get, set
Returns
TextMetricsCharacterSet TextMetricsCharacterSet
One of the TextMetricsCharacterSet values that specifies the character set of the font.
[Link] [Link]
I n this Article
Gets or sets the character to be substituted for characters not in the font.
public char DefaultChar { get; set; }
member [Link] : char with get, set
Returns
Char Char
The character to be substituted for characters not in the font.
[Link] [Link]
I n this Article
Gets or sets the descent of characters in the font.
public int Descent { get; set; }
member [Link] : int with get, set
Returns
Int32 Int32
The descent of characters in the font.
Remarks
The descent is the distance a character extends below the base line.
[Link] [Link]
X
I n this Article
Gets or sets the horizontal aspect of the device for which the font was designed.
Returns
Int32 Int32
The horizontal aspect of the device for which the font was designed.
[Link] [Link]
Y
I n this Article
Gets or sets the vertical aspect of the device for which the font was designed.
Returns
Int32 Int32
The vertical aspect of the device for which the font was designed.
[Link] [Link]
I n this Article
Gets or sets the amount of extra leading that the application adds between rows.
public int ExternalLeading { get; set; }
member [Link] : int with get, set
Returns
Int32 Int32
The amount of extra leading (space) required between rows.
Remarks
Because the leading area is outside the font, it contains no marks and is not altered by text output calls in either opaque
or transparent mode.
[Link] [Link]
I n this Article
Gets or sets the first character defined in the font.
public char FirstChar { get; set; }
member [Link] : char with get, set
Returns
Char Char
The first character defined in the font.
[Link] [Link]
I n this Article
Gets or sets the height of characters in the font.
public int Height { get; set; }
member [Link] : int with get, set
Returns
Int32 Int32
The height of characters in the font.
Remarks
The height of a character is equal to the Ascent plus the Descent.
[Link] [Link]
I n this Article
Gets or sets the amount of leading inside the bounds set by the Height property.
public int InternalLeading { get; set; }
member [Link] : int with get, set
Returns
Int32 Int32
The amount of leading inside the bounds set by the Height property.
Remarks
Accent marks and other diacritical characters may occur in this area.
[Link] [Link]
I n this Article
Gets or sets a value indicating whether the font is italic.
public bool Italic { get; set; }
member [Link] : bool with get, set
Returns
Boolean Boolean
true if the font is italic; otherwise, false .
[Link] [Link]
I n this Article
Gets or sets the last character defined in the font.
public char LastChar { get; set; }
member [Link] : char with get, set
Returns
Char Char
The last character defined in the font.
[Link] [Link]
I n this Article
Gets or sets the width of the widest character in the font.
public int MaxCharWidth { get; set; }
member [Link] : int with get, set
Returns
Int32 Int32
The width of the widest character in the font.
[Link] [Link]
I n this Article
Gets or sets the extra width per string that may be added to some synthesized fonts.
public int Overhang { get; set; }
member [Link] : int with get, set
Returns
Int32 Int32
The extra width per string that may be added to some synthesized fonts.
[Link] [Link]
I n this Article
Gets or sets information about the pitch, technology, and family of a physical font.
public [Link] PitchAndFamily { get; set;
}
member [Link] : [Link] with
get, set
Returns
TextMetricsPitchAndFamilyValues TextMetricsPitchAndFamilyValues
A bitwise combination of the TextMetricsPitchAndFamilyValues values that specifies the pitch, technology, and family of
a physical font.
[Link] [Link]
I n this Article
Gets or sets a value indicating whether the font specifies a horizontal line through the characters.
public bool StruckOut { get; set; }
member [Link] : bool with get, set
Returns
Boolean Boolean
true if the font has a horizontal line through the characters; otherwise, false .
[Link] [Link]
I n this Article
Gets or sets a value indicating whether the font is underlined.
public bool Underlined { get; set; }
member [Link] : bool with get, set
Returns
Boolean Boolean
true if the font is underlined; otherwise, false .
[Link] [Link]
I n this Article
Gets or sets the weight of the font.
public int Weight { get; set; }
member [Link] : int with get, set
Returns
Int32 Int32
The weight of the font.
TextMetricsCharacterSet TextMetricsCharacterSet Enum
Specifies the character set of the font specified by a visual style for a particular element.
D eclaration
public enum TextMetricsCharacterSet
type TextMetricsCharacterSet =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The TextMetricsCharacterSet enumeration specifies the possible values of the CharSet property of the TextMetrics
structure.
Fields
Ansi Ansi The ANSI character set.
D eclaration
[[Link]]
public enum TextMetricsPitchAndFamilyValues
type TextMetricsPitchAndFamilyValues =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The TextMetricsPitchAndFamilyValues enumeration specifies the possible values of the PitchAndFamily property of the
TextMetrics structure.
Fields
Device Device The font is a device font.
FixedPitch FixedPitch If this value is set, the font is a variable pitch font. Otherwise, the font is a fixed-pitch font.
D eclaration
public enum TextShadowType
type TextShadowType =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The TextShadowType values represent the return values of the [Link] method when it is
called with an argument value of [Link].
Fields
Continuous Continuous A continuous shadow is drawn.
D eclaration
public enum ThemeSizeType
type ThemeSizeType =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The ThemeSizeType values are used as an argument for the [Link] method.
Fields
Draw Draw The size that the current visual style uses to draw the part.
True True The size of the visual style part that will best fit the available space.
ToolBarState ToolBarState Enum
Specifies the visual state of a toolbar item that is drawn with visual styles.
D eclaration
public enum ToolBarState
type ToolBarState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The ToolBarState values correspond to the states of the VisualStyleElement objects exposed by the
[Link], [Link],
[Link], and [Link] classes.
Fields
Checked Checked The item is in the checked state.
D eclaration
public enum TrackBarThumbState
type TrackBarThumbState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The TrackBarThumbState values correspond to the states of the VisualStyleElement objects exposed by the following
classes:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
The TrackBarThumbState values are also used as an argument in the [Link] class
methods that draw the track bar slider.
Fields
Disabled Disabled The slider appears disabled.
D eclaration
public enum TrueSizeScalingType
type TrueSizeScalingType =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The TrueSizeScalingType values represent the return values of the [Link] method when it
is called with an argument value of [Link].
Fields
Dpi Dpi The element is scaled to dots per inch (DPI) settings.
D eclaration
public enum VerticalAlignment
type VerticalAlignment =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
The VerticalAlignment values represent the return values of the [Link] method when it is
called with an argument value of [Link].
Fields
Bottom Bottom The element is aligned to the bottom.
D eclaration
public class VisualStyleElement
type VisualStyleElement = class
I nheritance H ierarchy
Object Object
Remarks
The VisualStyleElement class identifies a Windows control or user interface (UI) element that is defined by the current
visual style of the operating system. A visual style element is defined in terms of class, part, and state:
The class identifies a group of related visual style elements that are typically drawn together. The class is specified by
the ClassName property.
The part defines a discrete member of a class. The part is specified by the Part property.
The state describes the current visual state of the element defined by the class and part. The state is specified by the
State property.
The [Link] namespace exposes hundreds of VisualStyleElement objects that represent
the controls and user interface elements that can be defined by a visual style. These objects are exposed as static
properties of nested classes of VisualStyleElement. For each property, the qualified name of the owning class
represents the class and the part of the drawn element, and the property name represents the state of the element. For
example, the [Link] property returns a VisualStyleElement that can be used to
draw a button in the pressed state with visual styles. The Pressed property name corresponds to the state,
PushButton corresponds to the part, and Button identifies the class of the visual style element.
To draw a visual style element, create a VisualStyleRenderer, set it to the VisualStyleElement you wish to draw, and
then call the DrawBackground method. To determine whether the current visual style provides a definition for a
particular element, call the IsElementDefined method with the element as the argument.
VisualStyleElement and VisualStyleRenderer wrap the functionality of the visual styles API from the Windows Shell
portion of the Windows Platform SDK. For more information on visual styles, see "Using Windows XP Visual Styles" in
the Platform SDK portion of the MSDN Library at [Link]
Properties
ClassName
ClassName
Gets the class name of the visual style element that this VisualStyleElement represents.
Part
Part
Gets a value indicating the part of the visual style element that this VisualStyleElement represents.
State
State
Gets a value indicating the state of the visual style element that this VisualStyleElement represents.
Methods
CreateElement(String, Int32, Int32)
CreateElement(String, Int32, Int32)
Creates a new visual style element from the specified class, part, and state values.
[Link] [Link]
Name
I n this Article
Gets the class name of the visual style element that this VisualStyleElement represents.
Returns
String String
A string that represents the class name of a visual style element.
Remarks
A class name refers to a group of related visual style elements that are typically drawn together. A class name can
correspond to a control, such as "SCROLLBAR" and "TRACKBAR", but a class name can also refer to a group of
elements that do not correspond to a particular control, such as "EXPLORERBAR" and "STARTPANEL".
For more information on visual style classes, parts, and states, see "Parts and States" in the Windows Shell
documentation at [Link]
See PartPart
Also StateState
[Link] VisualStyleElement.
CreateElement
I n this Article
Creates a new visual style element from the specified class, part, and state values.
Parameters
className String String
A string that represents the class name of the visual style element to be created.
part Int32 Int32
A value that represents the part of the visual style element to be created.
state Int32 Int32
A value that represents the state of the visual style element to be created.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement with the ClassName, Part, and State properties initialized to the className , part , and state
parameters.
[Link] [Link]
I n this Article
Gets a value indicating the part of the visual style element that this VisualStyleElement represents.
public int Part { get; }
member [Link] : int
Returns
Int32 Int32
A value that represents the part of a visual style element.
Remarks
A part is a discrete member of a class of visual style elements. For example, visual style elements that represent a check
box, radio button, and push button are all considered parts of the "BUTTON" class.
Part values are integers that range from 1 to the number of parts defined for a particular class. For more information
on visual style classes, parts, and states, see "Parts and States" in the Windows Shell documentation at
[Link]
See ClassNameClassName
Also StateState
[Link] [Link]
I n this Article
Gets a value indicating the state of the visual style element that this VisualStyleElement represents.
public int State { get; }
member [Link] : int
Returns
Int32 Int32
A value that represents the state of a visual style element.
Remarks
A visual style part can have one or more visual states. For example, a visual style element that represents a radio
button can be in the disabled, checked, or unchecked state.
State values are integers that range from 1 to the number of states defined for a particular part. For more information
on visual style classes, parts, and states, see "Parts and States" in the Windows Shell documentation located at
[Link]
See ClassNameClassName
Also PartPart
[Link] [Link]
Class
Contains classes that provide VisualStyleElement objects for button-related controls. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for each state of the control
specified by the class name.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for the different states of the check box control. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of the
check box control.
Properties
CheckedDisabled
CheckedDisabled
Gets a visual style element that represents a disabled check box in the checked state.
CheckedHot
CheckedHot
Gets a visual style element that represents a hot check box in the checked state.
CheckedNormal
CheckedNormal
Gets a visual style element that represents a normal check box in the checked state.
CheckedPressed
CheckedPressed
Gets a visual style element that represents a pressed check box in the checked state.
MixedDisabled
MixedDisabled
Gets a visual style element that represents a disabled check box in the indeterminate state.
MixedHot
MixedHot
Gets a visual style element that represents a hot check box in the indeterminate state.
MixedNormal
MixedNormal
Gets a visual style element that represents a normal check box in the indeterminate state.
MixedPressed
MixedPressed
Gets a visual style element that represents a pressed check box in the indeterminate state.
UncheckedDisabled
UncheckedDisabled
Gets a visual style element that represents a disabled check box in the unchecked state.
UncheckedHot
UncheckedHot
Gets a visual style element that represents a hot check box in the unchecked state.
UncheckedNormal
UncheckedNormal
Gets a visual style element that represents a normal check box in the unchecked state.
UncheckedPressed
UncheckedPressed
Gets a visual style element that represents a pressed check box in the unchecked state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a disabled check box in the checked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled check box in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the CheckedDisabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event
and call the DrawVisualStyleElement_Button_CheckBox8 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElement_Button_CheckBox8(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the CheckedDisabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a hot check box in the checked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot check box in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the CheckedHot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElement_Button_CheckBox6 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_CheckBox6(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the CheckedHot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a normal check box in the checked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal check box in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the CheckedNormal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElement_Button_CheckBox5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_CheckBox5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the CheckedNormal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a pressed check box in the checked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed check box in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the CheckedPressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElement_Button_CheckBox7 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_CheckBox7(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the CheckedPressed property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a disabled check box in the indeterminate state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled check box in the indeterminate state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the MixedDisabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElement_Button_CheckBox12 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_CheckBox12(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the MixedDisabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a hot check box in the indeterminate state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot check box in the indeterminate state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the MixedHot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElement_Button_CheckBox10 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_CheckBox10(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the MixedHot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a normal check box in the indeterminate state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal check box in the indeterminate state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the MixedNormal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElement_Button_CheckBox9 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_CheckBox9(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the MixedNormal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a pressed check box in the indeterminate state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed check box in the indeterminate state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the MixedPressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElement_Button_CheckBox11 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_CheckBox11(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the MixedPressed property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a disabled check box in the unchecked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled check box in the unchecked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the UncheckedDisabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event
and call the DrawVisualStyleElement_Button_CheckBox4 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElement_Button_CheckBox4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the UncheckedDisabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a hot check box in the unchecked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot check box in the unchecked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the UncheckedHot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElement_Button_CheckBox2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_CheckBox2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the UncheckedHot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a normal check box in the unchecked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal check box in the unchecked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the UncheckedNormal property. To run this example, paste it into a Windows Form. Handle the form's Paint event
and call the DrawVisualStyleElement_Button_CheckBox1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElement_Button_CheckBox1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the UncheckedNormal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a pressed check box in the unchecked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed check box in the unchecked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the UncheckedPressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event
and call the DrawVisualStyleElement_Button_CheckBox3 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElement_Button_CheckBox3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the UncheckedPressed property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for the different states of the group box control. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the group box control.
Properties
Disabled
Disabled
Normal
Normal
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a disabled group box.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled group box.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_GroupBox2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_GroupBox2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a normal group box.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal group box.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_GroupBox1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_GroupBox1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for the different states of the button control. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the button control.
Properties
Default
Default
Disabled
Disabled
Hot
Hot
Normal
Normal
Pressed
Pressed
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a default button.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a default button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Default property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_PushButton5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Default property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a disabled button.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_PushButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a hot button.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_PushButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a normal button.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_PushButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a pressed button.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed button.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for the different states of the radio button control. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the radio button control.
Properties
CheckedDisabled
CheckedDisabled
Gets a visual style element that represents a disabled radio button in the checked state.
CheckedHot
CheckedHot
Gets a visual style element that represents a hot radio button in the checked state.
CheckedNormal
CheckedNormal
Gets a visual style element that represents a normal radio button in the checked state.
CheckedPressed
CheckedPressed
Gets a visual style element that represents a pressed radio button in the checked state.
UncheckedDisabled
UncheckedDisabled
Gets a visual style element that represents a disabled radio button in the unchecked state.
UncheckedHot
UncheckedHot
Gets a visual style element that represents a hot radio button in the unchecked state.
UncheckedNormal
UncheckedNormal
Gets a visual style element that represents a normal radio button in the unchecked state.
UncheckedPressed
UncheckedPressed
Gets a visual style element that represents a pressed radio button in the unchecked state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a disabled radio button in the checked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled radio button in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the CheckedDisabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event
and call the DrawVisualStyleElement_Button_RadioButton8 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the CheckedDisabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a hot radio button in the checked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot radio button in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the CheckedHot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElement_Button_RadioButton6 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_RadioButton6(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the CheckedHot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a normal radio button in the checked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal radio button in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the CheckedNormal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElement_Button_RadioButton5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_RadioButton5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the CheckedNormal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a pressed radio button in the checked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed radio button in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the CheckedPressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElement_Button_RadioButton7 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_RadioButton7(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the CheckedPressed property to create a VisualStyleRenderer.
[Link]
Disabled [Link].
UncheckedDisabled
I n this Article
Gets a visual style element that represents a disabled radio button in the unchecked state.
public static [Link] UncheckedDisabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled radio button in the unchecked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the UncheckedDisabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event
and call the DrawVisualStyleElement_Button_RadioButton4 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the UncheckedDisabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a hot radio button in the unchecked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot radio button in the unchecked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the UncheckedHot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElement_Button_RadioButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_RadioButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the UncheckedHot property to create a VisualStyleRenderer.
[Link]
Normal [Link].
UncheckedNormal
I n this Article
Gets a visual style element that represents a normal radio button in the unchecked state.
public static [Link] UncheckedNormal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal radio button in the unchecked state.
Remarks
You can use the VisualStyleElement returned by the UncheckedNormal property to create a VisualStyleRenderer.
[Link]
Pressed [Link].
UncheckedPressed
I n this Article
Gets a visual style element that represents a pressed radio button in the unchecked state.
public static [Link] UncheckedPressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed radio button in the unchecked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the UncheckedPressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event
and call the DrawVisualStyleElement_Button_RadioButton3 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the UncheckedPressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for a user button. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class gets a VisualStyleElement that represents a
user button.
Properties
Normal
Normal
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a user button.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a user button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_UserButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
ComboBox Class
Contains a class that provides VisualStyleElement objects for the drop-down arrow of the combo box control. This
class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the
[Link] class is defined. [Link]
provides a set of properties that return a VisualStyleElement for each state of the drop-down arrow of a combo box
control. To get a VisualStyleElement for the text box portion of a combo box, use one of the
[Link] properties.
[Link] Visual
[Link] Class
Provides VisualStyleElement objects for the different states of the drop-down arrow of the combo box control. This
class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a
different state of the drop-down arrow of the combo box control.
Properties
Disabled
Disabled
Gets a visual style element that represents a drop-down arrow in the disabled state.
Hot
Hot
Gets a visual style element that represents a drop-down arrow in the hot state.
Normal
Normal
Gets a visual style element that represents a drop-down arrow in the normal state.
Pressed
Pressed
Gets a visual style element that represents a drop-down arrow in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link].
Disabled [Link]
[Link]
I n this Article
Gets a visual style element that represents a drop-down arrow in the disabled state.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a drop-down arrow in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_DropDownButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_ComboBox_DropDownButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a drop-down arrow in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a drop-down arrow in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_DropDownButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_ComboBox_DropDownButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a drop-down arrow in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a drop-down arrow in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_DropDownButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_ComboBox_DropDownButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a drop-down arrow in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a drop-down arrow in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_DropDownButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_ComboBox_DropDownButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
ExplorerBar Class
Contains classes that provide VisualStyleElement objects for each part of the Explorer Bar. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for each state of the Explorer
Bar part specified by the class name.
[Link] Visual
[Link] Class
Provides a VisualStyleElement for the background of the Explorer Bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class gets a VisualStyleElement that
represents the background of the Explorer Bar.
Properties
Normal
Normal
Gets a visual style element that represents the background of the Explorer Bar.
See Also
VisualStyleElement VisualStyleElement
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents the background of the Explorer Bar.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of the Explorer Bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarHeaderBackground1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementExplorerBarHeaderBackground1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the Close button of the Explorer Bar. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the Close button of the Explorer Bar.
Properties
Hot
Hot
Gets a visual style element that represents a Close button in the hot state.
Normal
Normal
Gets a visual style element that represents a Close button in the normal state.
Pressed
Pressed
Gets a visual style element that represents a Close button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Close button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Close button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarHeaderClose2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementExplorerBarHeaderClose2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a Close button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Close button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarHeaderClose1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementExplorerBarHeaderClose1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a Close button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Close button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarHeaderClose3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementExplorerBarHeaderClose3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the Auto Hide button (which is displayed as a push pin) of the
Explorer Bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
of the Auto Hide button of the Explorer Bar.
Properties
Hot
Hot
Gets a visual style element that represents an Auto Hide button (which is displayed as a push pin) in the hot state.
Normal
Normal
Gets a visual style element that represents an Auto Hide button (which is displayed as a push pin) in the normal
state.
Pressed
Pressed
Gets a visual style element that represents an Auto Hide button (which is displayed as a push pin) in the pressed
state.
SelectedHot
SelectedHot
Gets a visual style element that represents a selected Auto Hide button (which is displayed as a push pin) in the
hot state.
SelectedNormal
SelectedNormal
Gets a visual style element that represents a selected Auto Hide button (which is displayed as a push pin) in the
normal state.
SelectedPressed
SelectedPressed
Gets a visual style element that represents a selected Auto Hide button (which is displayed as a push pin) in the
pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents an Auto Hide button (which is displayed as a push pin) in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an Auto Hide button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarHeaderPin2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementExplorerBarHeaderPin2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents an Auto Hide button (which is displayed as a push pin) in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an Auto Hide button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarHeaderPin1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementExplorerBarHeaderPin1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents an Auto Hide button (which is displayed as a push pin) in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an Auto Hide button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarHeaderPin3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementExplorerBarHeaderPin3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a selected Auto Hide button (which is displayed as a push pin) in the hot
state.
public static [Link] SelectedHot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a selected Auto Hide button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the SelectedHot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementExplorerBarHeaderPin5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementExplorerBarHeaderPin5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the SelectedHot property to create a VisualStyleRenderer.
[Link]
Normal [Link].
SelectedNormal
I n this Article
Gets a visual style element that represents a selected Auto Hide button (which is displayed as a push pin) in the
normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a selected Auto Hide button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the SelectedNormal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElementExplorerBarHeaderPin4 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementExplorerBarHeaderPin4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the SelectedNormal property to create a VisualStyleRenderer.
[Link]
Pressed [Link].
SelectedPressed
I n this Article
Gets a visual style element that represents a selected Auto Hide button (which is displayed as a push pin) in the
pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a selected Auto Hide button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the SelectedPressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElementExplorerBarHeaderPin6 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementExplorerBarHeaderPin6(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the SelectedPressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the expanded-menu arrow of the Explorer Bar. This class cannot
be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a different state of
the menu button of the Explorer Bar.
Properties
Hot
Hot
Normal
Normal
Pressed
Pressed
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a hot menu button.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot menu button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarIEBarMenu2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementExplorerBarIEBarMenu2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a normal menu button.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal menu button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarIEBarMenu1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementExplorerBarIEBarMenu1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a pressed menu button.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed menu button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarIEBarMenu3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementExplorerBarIEBarMenu3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link]
[Link]
Class
Provides a VisualStyleElement for the background of a common group of items in the Explorer Bar. This class cannot
be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class gets a VisualStyleElement
that represents the background of a common group of items in the Explorer Bar, such as the File and Folder Tasks
group in Windows Explorer.
Properties
Normal
Normal
Gets a visual style element that represents the background of a common group of items in the Explorer Bar.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link] [Link].
[Link]
I n this Article
Gets a visual style element that represents the background of a common group of items in the Explorer Bar.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of a common group of items in the Explorer Bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarNormalGroupBackground1 method from the Paint event-handling method,
passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
Class
Provides VisualStyleElement objects for each state of the collapse button of a common group of items in the Explorer
Bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a
different state of the collapse button of a common group of items in the Explorer Bar, such as the File and Folder
Tasks group in Windows Explorer.
Properties
Hot
Hot
Gets a visual style element that represents a hot collapse button of a common group of items in the Explorer Bar.
Normal
Normal
Gets a visual style element that represents a normal collapse button of a common group of items in the Explorer
Bar.
Pressed
Pressed
Gets a visual style element that represents a pressed collapse button of a common group of items in the Explorer
Bar.
See Also
VisualStyleElement VisualStyleElement
[Link].
Hot [Link]
[Link]
I n this Article
Gets a visual style element that represents a hot collapse button of a common group of items in the Explorer Bar.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot collapse button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
Handle the form's Paint event and call the DrawVisualStyleElementExplorerBarNormalGroupCollapse2 method from
the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents a normal collapse button of a common group of items in the Explorer Bar.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal collapse button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
Handle the form's Paint event and call the DrawVisualStyleElementExplorerBarNormalGroupCollapse1 method from
the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link].
Pressed [Link]
[Link]
I n this Article
Gets a visual style element that represents a pressed collapse button of a common group of items in the Explorer Bar.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed collapse button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarNormalGroupCollapse3 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link]
[Link]
Class
Provides VisualStyleElement objects for each state of the expand button of a common group of items in the Explorer
Bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a
different state of the expand button of a common group of items in the Explorer Bar, such as the File and Folder
Tasks group in Windows Explorer.
Properties
Hot
Hot
Gets a visual style element that represents a hot expand button of a common group of items in the Explorer Bar.
Normal
Normal
Gets a visual style element that represents a normal expand button of a common group of items in the Explorer
Bar.
Pressed
Pressed
Gets a visual style element that represents a pressed expand button of a common group of items in the Explorer
Bar.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a hot expand button of a common group of items in the Explorer Bar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot expand button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarNormalGroupExpand2 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementExplorerBarNormalGroupExpand2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents a normal expand button of a common group of items in the Explorer Bar.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal expand button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarNormalGroupExpand1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementExplorerBarNormalGroupExpand1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link].
Pressed [Link]
[Link]
I n this Article
Gets a visual style element that represents a pressed expand button of a common group of items in the Explorer Bar.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed expand button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarNormalGroupExpand3 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementExplorerBarNormalGroupExpand3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides a VisualStyleElement for the title bar of a common group of items in the Explorer Bar. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class gets a VisualStyleElement that
represents the title bar of a common group of items in the Explorer Bar, such as the File and Folder Tasks group in
Windows Explorer.
Properties
Normal
Normal
Gets a visual style element that represents the title bar of a common group of items in the Explorer Bar.
See Also
VisualStyleElement VisualStyleElement
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents the title bar of a common group of items in the Explorer Bar.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of a common group of items in the Explorer Bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarNormalGroupHead1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementExplorerBarNormalGroupHead1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
Class
Provides a VisualStyleElement for the background of a special group of items in the Explorer Bar. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class gets a VisualStyleElement
that represents the background of a special group of items in the Explorer Bar, such as the Music Tasks group in
Windows Explorer.
Properties
Normal
Normal
Gets a visual style element that represents the background of a special group of items in the Explorer Bar.
See Also
VisualStyleElement VisualStyleElement
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents the background of a special group of items in the Explorer Bar.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of a special group of items in the Explorer Bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarSpecialGroupBackground1 method from the Paint event-handling method,
passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
Class
Provides VisualStyleElement objects for each state of the collapse button of a special group of items in the Explorer
Bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a
different state of the collapse button of a special group of items in the Explorer Bar, such as the Music Tasks group in
Windows Explorer.
Properties
Hot
Hot
Gets a visual style element that represents a hot collapse button of a special group of items in the Explorer Bar.
Normal
Normal
Gets a visual style element that represents a normal collapse button of a special group of items in the Explorer Bar.
Pressed
Pressed
Gets a visual style element that represents a pressed collapse button of a special group of items in the Explorer
Bar.
See Also
VisualStyleElement VisualStyleElement
[Link].
Hot [Link]
[Link]
I n this Article
Gets a visual style element that represents a hot collapse button of a special group of items in the Explorer Bar.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot collapse button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarSpecialGroupCollapse2 method from the Paint event-handling method,
passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents a normal collapse button of a special group of items in the Explorer Bar.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal collapse button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarSpecialGroupCollapse1 method from the Paint event-handling method,
passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link].
Pressed [Link]
[Link]
I n this Article
Gets a visual style element that represents a pressed collapse button of a special group of items in the Explorer Bar.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed collapse button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarSpecialGroupCollapse3 method from the Paint event-handling method,
passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link]
[Link]
Class
Provides VisualStyleElement objects for each state of the expand button of a special group of items in the Explorer Bar.
This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a
different state of the expand button of a special group of items in the Explorer Bar, such as the Music Tasks group in
Windows Explorer.
Properties
Hot
Hot
Gets a visual style element that represents a hot expand button of a special group of items in the Explorer Bar.
Normal
Normal
Gets a visual style element that represents a normal expand button of a special group of items in the Explorer Bar.
Pressed
Pressed
Gets a visual style element that represents a pressed expand button of a special group of items in the Explorer Bar.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a hot expand button of a special group of items in the Explorer Bar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot expand button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarSpecialGroupExpand2 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents a normal expand button of a special group of items in the Explorer Bar.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal expand button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarSpecialGroupExpand1 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link].
Pressed [Link]
[Link]
I n this Article
Gets a visual style element that represents a pressed expand button of a special group of items in the Explorer Bar.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed expand button.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarSpecialGroupExpand3 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides a VisualStyleElement for the title bar of a special group of items in the Explorer Bar. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class gets a VisualStyleElement that
represents the title bar of a special group of items in the Explorer Bar, such as the Music Tasks group in Windows
Explorer.
Properties
Normal
Normal
Gets a visual style element that represents the title bar of a special group of items in the Explorer Bar.
See Also
VisualStyleElement VisualStyleElement
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents the title bar of a special group of items in the Explorer Bar.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of a special group of items in the Explorer Bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementExplorerBarSpecialGroupHead1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementExplorerBarSpecialGroupHead1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link]
Class
Contains classes that provide VisualStyleElement objects for each part of the header control. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for each state of the header
control part specified by the class name.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for each state of an item of the header control. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a different state of a header
item.
Properties
Hot
Hot
Normal
Normal
Pressed
Pressed
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents a hot header item.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot header item.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementHeaderItem2 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a normal header item.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal header item.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementHeaderItem1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a pressed header item.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed header item.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementHeaderItem3 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for each state of the leftmost item of the header control. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a different state of the
leftmost header item.
Properties
Hot
Hot
Gets a visual style element that represents the leftmost header item in the hot state.
Normal
Normal
Gets a visual style element that represents the leftmost header item in the normal state.
Pressed
Pressed
Gets a visual style element that represents the leftmost header item in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the leftmost header item in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the leftmost header item in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementHeaderItemLeft2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementHeaderItemLeft2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the leftmost header item in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the leftmost header item in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementHeaderItemLeft1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementHeaderItemLeft1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the leftmost header item in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the leftmost header item in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementHeaderItemLeft3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementHeaderItemLeft3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for each state of the rightmost item of the header control. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a different state of the
rightmost header item.
Properties
Hot
Hot
Gets a visual style element that represents the rightmost header item in the hot state.
Normal
Normal
Gets a visual style element that represents the rightmost header item in the normal state.
Pressed
Pressed
Gets a visual style element that represents the rightmost header item in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the rightmost header item in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the rightmost header item in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementHeaderItemRight2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementHeaderItemRight2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the rightmost header item in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the rightmost header item in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementHeaderItemRight1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementHeaderItemRight1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the rightmost header item in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the rightmost header item in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementHeaderItemRight3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementHeaderItemRight3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for the sort arrow of a header item. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for the sort arrow of a
header item.
Properties
SortedDown
SortedDown
SortedUp
SortedUp
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing sort arrow.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing sort arrow.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the SortedDown property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementHeaderSortArrow2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementHeaderSortArrow2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the SortedDown property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing sort arrow.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing sort arrow.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the SortedUp property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementHeaderSortArrow1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementHeaderSortArrow1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the SortedUp property to create a VisualStyleRenderer.
[Link] [Link]
Class
Contains classes that provide VisualStyleElement objects for the parts of the list view control. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for each state of the list view
part specified by the class name.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for a list view in detail view. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents a list
view in detail view.
Properties
Normal
Normal
Gets a visual style element that represents a list view in detail view.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a list view in detail view.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a list view in detail view.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementListViewDetail1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementListViewDetail1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the text area of a list view that contains no items. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents
the text area that accompanies an empty list view.
Properties
Normal
Normal
Gets a visual style element that represents the text area of a list view that contains no items.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the text area of a list view that contains no items.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the text area that accompanies an empty list view.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementListViewEmptyText1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementListViewEmptyText1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for a list view item group. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents a
list view item group.
Properties
Normal
Normal
Gets a visual style element that represents a list view item group.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a list view item group.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a group of list view items.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementListViewGroup1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementListViewGroup1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link]
[Link] Class
Provides VisualStyleElement objects for each state of an item of the list view control. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of a list
view item.
Properties
Disabled
Disabled
Gets a visual style element that represents a disabled list view item.
Hot
Hot
Gets a visual style element that represents a hot list view item.
Normal
Normal
Gets a visual style element that represents a normal list view item.
Selected
Selected
Gets a visual style element that represents a selected list view item that has focus.
SelectedNotFocus
SelectedNotFocus
Gets a visual style element that represents a selected list view item without focus.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a disabled list view item.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled list view item.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementListViewItem4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementListViewItem4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents a hot list view item.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot list view item.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementListViewItem2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementListViewItem2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a normal list view item.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal list view item.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementListViewItem1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementListViewItem1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a selected list view item that has focus.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a selected list view item that has focus.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Selected property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementListViewItem3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementListViewItem3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Selected property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a selected list view item without focus.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a selected list view item without focus.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the SelectedNotFocus property. To run this example, paste it into a Windows Form. Handle the form's Paint event
and call the DrawVisualStyleElementListViewItem5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementListViewItem5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the SelectedNotFocus property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for a sorted list view control in detail view This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents a sorted list view control in detail view.
Properties
Normal
Normal
Gets a visual style element that represents a sorted list view control in detail view.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a sorted list view control in detail view.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a sorted list view control in detail view.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementListViewSortedDetail1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementListViewSortedDetail1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link] Class
Contains classes that provide VisualStyleElement objects for the parts of a menu. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for each state of the menu part
specified by the class name.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the drop-down arrow of a menu bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the drop-down arrow of a menu bar.
Properties
Normal
Normal
Gets a visual style element that represents the drop-down arrow of a menu bar.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the drop-down arrow of a menu bar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the drop-down arrow of a menu bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementMenuBarDropDown1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementMenuBarDropDown1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for a menu bar item. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents a
menu bar item.
Properties
Normal
Normal
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a menu bar item.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a menu bar item.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementMenuBarItem1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for the chevron of a menu. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class gets a VisualStyleElement that represents the
chevron of a menu.
Properties
Normal
Normal
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a menu chevron.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a menu chevron.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementMenuChevron1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for the drop-down arrow of a menu. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class gets a VisualStyleElement that represents the
drop-down arrow of a menu.
Properties
Normal
Normal
Gets a visual style element that represents the drop-down arrow of a menu.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the drop-down arrow of a menu.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the drop-down arrow of a menu.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementMenuDropDown1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementMenuDropDown1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link].
Item Class
Provides VisualStyleElement objects for each state of a menu item. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of a menu
item.
Properties
Demoted
Demoted
Gets a visual style element that represents a menu item that has been demoted.
Normal
Normal
Gets a visual style element that represents a menu item in the normal state.
Selected
Selected
Gets a visual style element that represents a menu item in the selected state.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a menu item that has been demoted.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a menu item that has been demoted.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Demoted property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementMenuItem3 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Demoted property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a menu item in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a menu item in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementMenuItem1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a menu item in the selected state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a menu item in the selected state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Selected property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementMenuItem2 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Selected property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for a menu item separator. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents a
separator between menu items.
Properties
Normal
Normal
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a menu item separator.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a menu item separator.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementMenuSeparator1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementMenuSeparator1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link]
Band Class
Contains classes that provide VisualStyleElement objects for the parts of a menu band. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for each state of the menu
band part specified by the class name.
[Link]
[Link]
Class
Provides VisualStyleElement objects for each state of the new application button of a menu band. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a
different state of the new application button of a menu band.
Properties
Checked
Checked
Gets a visual style element that represents the new application button in the checked state.
Disabled
Disabled
Gets a visual style element that represents the new application button in the disabled state.
Hot
Hot
Gets a visual style element that represents the new application button in the hot state.
HotChecked
HotChecked
Gets a visual style element that represents the new application button in the hot and checked states.
Normal
Normal
Gets a visual style element that represents the new application button in the normal state.
Pressed
Pressed
Gets a visual style element that represents the new application button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link].
Checked [Link]
[Link]
I n this Article
Gets a visual style element that represents the new application button in the checked state.
public static [Link] Checked { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the new application button in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Checked property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementMenuBandNewApplicationButton5 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementMenuBandNewApplicationButton5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Checked property to create a VisualStyleRenderer.
[Link].
Disabled [Link]
[Link]
I n this Article
Gets a visual style element that represents the new application button in the disabled state.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the new application button in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementMenuBandNewApplicationButton4 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementMenuBandNewApplicationButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link].
Hot [Link]
[Link]
I n this Article
Gets a visual style element that represents the new application button in the hot state.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the new application button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_PushButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link].
HotChecked [Link]
[Link]
I n this Article
Gets a visual style element that represents the new application button in the hot and checked states.
public static [Link] HotChecked { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the new application button in the hot and checked states.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the HotChecked property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementMenuBandNewApplicationButton6 method from the Paint event-handling method,
passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the HotChecked property to create a VisualStyleRenderer.
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents the new application button in the normal state.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the new application button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementMenuBandNewApplicationButton1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementMenuBandNewApplicationButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link].
Pressed [Link]
[Link]
I n this Article
Gets a visual style element that represents the new application button in the pressed state.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the new application button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementMenuBandNewApplicationButton3 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementMenuBandNewApplicationButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for a menu band separator. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents a separator between items in a menu band.
Properties
Normal
Normal
Gets a visual style element that represents a separator between items in a menu band.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a separator between items in a menu band.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a separator between items in a menu band.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementMenuBandSeparator1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementMenuBandSeparator1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link] Class
Contains classes that provide VisualStyleElement objects for the parts of a page. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for the part of the page
specified by the class name.
[Link] [Link].
Down Class
Provides VisualStyleElement objects for each state of a down indicator in an up-down or spin box control. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for the different state of a down
indicator in an up-down or spin box control.
Properties
Disabled
Disabled
Gets a visual style element that represents the disabled state of the down indicator in an up-down or spin box
control.
Hot
Hot
Gets a visual style element that represents a down indicator of an up-down or spin box control in the hot state.
Normal
Normal
Gets a visual style element that represents the down indicator of an up-down or spin box control in the normal
state.
Pressed
Pressed
Gets a visual style element that represents the down indicator of an up-down or spin box in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the disabled state of the down indicator in an up-down or spin box control.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a down indicator of an up-down or spin box control in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_Down4 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents a down indicator of an up-down or spin box control in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the down indicator of an up-down or spin box in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_Down2 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the down indicator of an up-down or spin box control in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a down indicator up an up-down or spin box control in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_Down1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the down indicator of an up-down or spin box in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a down indicator of an up-down or spin box in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_Down3 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of a page backward indicator in a pager control. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
of a page backward indicator of a pager control.
Properties
Disabled
Disabled
Gets a visual style element that represents a page backward indicator of a pager control in the disabled state.
Hot
Hot
Gets a visual style element that represents a page backward indicator of a pager control in the hot state.
Normal
Normal
Gets a visual style element that represents a page backward indicator of a pager control in the normal state.
Pressed
Pressed
Gets a visual style element that represents a page backward indicator of a pager control in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a page backward indicator of a pager control in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a page backward indicator of a pager control in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_DownHorizontal4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Page_DownHorizontal4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a page backward indicator of a pager control in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a page backward indicator of a pager control in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_DownHorizontal2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Page_DownHorizontal2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a page backward indicator of a pager control in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a page backward indicator of a pager control in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_DownHorizontal1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Page_DownHorizontal1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a page backward indicator of a pager control in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents page backward indicator of a pager control in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_DownHorizontal3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Page_DownHorizontal3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] [Link]
Class
Provides VisualStyleElement objects for each state of a page up indicator of an up-down or spin box control. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of a page up
indicator of an up-down or spin box control.
Properties
Disabled
Disabled
Gets a visual style element that represents a page up indicator of an up-down or spin box control in the disabled
state.
Hot
Hot
Gets a visual style element that represents a page up indicator of an up-down or spin box control in the hot state.
Normal
Normal
Gets a visual style element that represents a page up indicator of an up-down or spin box control in the normal
state.
Pressed
Pressed
Gets a visual style element that represents a page up indicator of an up-down or spin box control in the pressed
state.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents a page up indicator of an up-down or spin box control in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a page up indicator of an up-down or spin box control in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_Up4 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents a page up indicator of an up-down or spin box control in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a page up indicator of an up-down or spin box control in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_Up1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents a page up indicator of an up-down or spin box control in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a page up indicator of an up-down or spin box control in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_Up1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents a page up indicator of an up-down or spin box control in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a page up indicator of an up-down or spin box control in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_Up3 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of a page forward indicator of a pager control. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of a
page forward indicator of a pager control.
Properties
Disabled
Disabled
Gets a visual style element that represents a page forward indicator of a pager control in the disabled state.
Hot
Hot
Gets a visual style element that represents a page forward indicator of a pager control in the hot state.
Normal
Normal
Gets a visual style element that represents a page forward indicator of a pager control in the normal state.
Pressed
Pressed
Gets a visual style element that represents a page forward indicator of a pager control in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a page forward indicator of a pager control in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a page forward indicator of a pager control in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_UpHorizontal4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Page_UpHorizontal4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a page forward indicator of a pager control in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a page forward indicator of a pager control in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_UpHorizontal2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Page_UpHorizontal2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a page forward indicator of a pager control in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a page forward indicator of a pager control in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_UpHorizontal1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Page_UpHorizontal1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a page forward indicator of a pager control in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a page forward indicator of a pager control in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Page_UpHorizontal3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Page_UpHorizontal3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
ProgressBar Class
Contains classes that provide VisualStyleElement objects for the parts of the progress bar control. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for each state of the progress
bar part specified by the class name.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for the frame of a horizontal progress bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents the
frame of a progress bar that fills in horizontally.
Properties
Normal
Normal
Gets a visual style element that represents a horizontal progress bar frame.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a horizontal progress bar frame.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal progress bar frame.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementProgressBarBar1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementProgressBarBar1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the frame of a vertical progress bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the frame of a progress bar that fills in vertically.
Properties
Normal
Normal
Gets a visual style element that represents a vertical progress bar frame.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a vertical progress bar frame.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical progress bar frame.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementProgressBarBarVertical1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementProgressBarBarVertical1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the pieces that fill a horizontal progress bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents
the pieces that fill a horizontal progress bar.
Properties
Normal
Normal
Gets a visual style element that represents the pieces that fill a horizontal progress bar.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the pieces that fill a horizontal progress bar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the pieces that fill a horizontal progress bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementProgressBarChunk1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementProgressBarChunk1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the pieces that fill a vertical progress bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the pieces that fill a vertical progress bar.
Properties
Normal
Normal
Gets a visual style element that represents the pieces that fill a vertical progress bar.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the pieces that fill a vertical progress bar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the pieces that fill a vertical progress bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementProgressBarChunkVertical1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementProgressBarChunkVertical1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link] Class
Contains classes that provide VisualStyleElement objects for the parts of the rebar control. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for each state of the rebar part
specified by the class name.
[Link] [Link].
Band Class
Provides a VisualStyleElement for a rebar band. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents a rebar
band.
Properties
Normal
Normal
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a rebar band.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a rebar band.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementRebarBand1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for each state of a horizontal chevron. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of a
horizontal chevron.
Properties
Hot
Hot
Normal
Normal
Pressed
Pressed
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a hot chevron.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot chevron.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementRebarChevron2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementRebarChevron2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a normal chevron.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal chevron.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementRebarChevron1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementRebarChevron1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a pressed chevron.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed chevron.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementRebarChevron3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementRebarChevron3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of a chevron. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
of a chevron.
Properties
Hot
Hot
Normal
Normal
Pressed
Pressed
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a hot chevron.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot chevron.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementRebarChevronVertical2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementRebarChevronVertical2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a normal chevron.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal chevron.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementRebarChevronVertical1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementRebarChevronVertical1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a pressed chevron.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed chevron.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementRebarChevronVertical3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementRebarChevronVertical3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for the gripper bar of a horizontal rebar control. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents the
gripper bar for a horizontal rebar.
Properties
Normal
Normal
Gets a visual style element that represents a gripper bar for a horizontal rebar.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a gripper bar for a horizontal rebar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a gripper bar for a horizontal rebar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementRebarGripper1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementRebarGripper1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the gripper bar of a vertical rebar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the gripper bar of a vertical rebar.
Properties
Normal
Normal
Gets a visual style element that represents a gripper bar for a vertical rebar.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a gripper bar for a vertical rebar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a gripper bar for a vertical rebar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementRebarGripperVertical1 method from the Paint event-handling method, passing e as
PaintEventArgs.
[Link]#206
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link]
Class
Contains classes that provide VisualStyleElement objects for the parts of the scroll bar control. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for each state of the scroll bar
part specified by the class name.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state and direction of a scroll arrow. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
and direction of a scroll arrow.
Properties
DownDisabled
DownDisabled
Gets a visual style element that represents a downward-pointing scroll arrow in the disabled state.
DownHot
DownHot
Gets a visual style element that represents a downward-pointing scroll arrow in the hot state.
DownNormal
DownNormal
Gets a visual style element that represents a downward-pointing scroll arrow in the normal state.
DownPressed
DownPressed
Gets a visual style element that represents a downward-pointing scroll arrow in the pressed state.
LeftDisabled
LeftDisabled
Gets a visual style element that represents a left-pointing scroll arrow in the disabled state.
LeftHot
LeftHot
Gets a visual style element that represents a left-pointing scroll arrow in the hot state.
LeftNormal
LeftNormal
Gets a visual style element that represents a left-pointing scroll arrow in the normal state.
LeftPressed
LeftPressed
Gets a visual style element that represents a left-pointing scroll arrow in the pressed state.
RightDisabled
RightDisabled
Gets a visual style element that represents a right-pointing scroll arrow in the disabled state.
RightHot
RightHot
Gets a visual style element that represents a right-pointing scroll arrow in the hot state.
RightNormal
RightNormal
Gets a visual style element that represents a right-pointing scroll arrow in the normal state.
RightPressed
RightPressed
Gets a visual style element that represents a right-pointing scroll arrow in the pressed state.
UpDisabled
UpDisabled
Gets a visual style element that represents an upward-pointing scroll arrow in the disabled state.
UpHot
UpHot
Gets a visual style element that represents an upward-pointing scroll arrow in the hot state.
UpNormal
UpNormal
Gets a visual style element that represents an upward-pointing scroll arrow in the normal state.
UpPressed
UpPressed
Gets a visual style element that represents an upward-pointing scroll arrow in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing scroll arrow in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing scroll arrow in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the DownDisabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElementScrollBarArrowButton8 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton8(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the DownDisabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing scroll arrow in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing scroll arrow in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the DownHot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementScrollBarArrowButton6 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton6(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the DownHot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing scroll arrow in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing scroll arrow in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the DownNormal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElementScrollBarArrowButton5 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the DownNormal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing scroll arrow in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing scroll arrow in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the DownPressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElementScrollBarArrowButton7 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton7(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the DownPressed property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a left-pointing scroll arrow in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing scroll arrow in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the LeftDisabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementScrollBarArrowButton12 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton12(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the LeftDisabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a left-pointing scroll arrow in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing scroll arrow in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the LeftHot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarArrowButton10 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton10(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the LeftHot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a left-pointing scroll arrow in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing scroll arrow in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the LeftNormal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementScrollBarArrowButton9 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton9(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the LeftNormal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a left-pointing scroll arrow in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing scroll arrow in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the LeftPressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementScrollBarArrowButton11 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton11(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the LeftPressed property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a right-pointing scroll arrow in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing scroll arrow in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the RightDisabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElementScrollBarArrowButton16 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton16(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the RightDisabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a right-pointing scroll arrow in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing scroll arrow in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the RightHot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarArrowButton14 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton14(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the RightHot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a right-pointing scroll arrow in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing scroll arrow in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the RightNormal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElementScrollBarArrowButton13 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton13(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the RightNormal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a right-pointing scroll arrow in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing scroll arrow in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the RightPressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and
call the DrawVisualStyleElementScrollBarArrowButton15 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton15(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the RightPressed property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing scroll arrow in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing scroll arrow in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the UpDisabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementScrollBarArrowButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the UpDisabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing scroll arrow in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing scroll arrow in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the UpHot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarArrowButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the UpHot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing scroll arrow in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing scroll arrow in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the UpNormal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementScrollBarArrowButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the UpNormal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing scroll arrow in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing scroll arrow in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the UpPressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementArrowButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarArrowButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the UpPressed property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides a VisualStyleElement for the grip of a horizontal scroll box (also known as the thumb). This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the grip of a horizontal scroll box.
Properties
Normal
Normal
Gets a visual style element that represents a grip for a horizontal scroll box.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a grip for a horizontal scroll box.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a grip for a horizontal scroll box.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarGripperHorizontal1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarGripperHorizontal1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the grip of a vertical scroll box (also known as the thumb). This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the grip of a vertical scroll box.
Properties
Normal
Normal
Gets a visual style element that represents a grip for a vertical scroll box.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a grip for a vertical scroll box.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a grip for a vertical scroll box.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarGripperVertical1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarGripperVertical1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides VisualStyleElement objects for each state of the left part of a horizontal scroll bar track. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a
different state of the horizontal scroll bar track to the left of the scroll box (also known as the thumb).
Properties
Disabled
Disabled
Gets a visual style element that represents the left part of a horizontal scroll bar track in the disabled state.
Hot
Hot
Gets a visual style element that represents the left part of a horizontal scroll bar track in the hot state.
Normal
Normal
Gets a visual style element that represents the left part of a horizontal scroll bar track in the normal state.
Pressed
Pressed
Gets a visual style element that represents the left part of a horizontal scroll bar track in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the left part of a horizontal scroll bar track in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the left part of a horizontal scroll bar track in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarLeftTrackHorizontal4 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarLeftTrackHorizontal4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the left part of a horizontal scroll bar track in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the left part of a horizontal scroll bar track in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarLeftTrackHorizontal2 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarLeftTrackHorizontal2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the left part of a horizontal scroll bar track in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the left part of a horizontal scroll bar track in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarLeftTrackHorizontal1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarLeftTrackHorizontal1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the left part of a horizontal scroll bar track in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the left part of a horizontal scroll bar track in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarLeftTrackHorizonta13 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarLeftTrackHorizontal3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides VisualStyleElement objects for each state of the lower part of a vertical scroll bar track. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the vertical scroll bar track below the scroll box (also known as the thumb).
Properties
Disabled
Disabled
Gets a visual style element that represents the lower part of a vertical scroll bar track in the disabled state.
Hot
Hot
Gets a visual style element that represents the lower part of a vertical scroll bar track in the hot state.
Normal
Normal
Gets a visual style element that represents the lower part of a vertical scroll bar track in the normal state.
Pressed
Pressed
Gets a visual style element that represents the lower part of a vertical scroll bar track in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the lower part of a vertical scroll bar track in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the lower part of a vertical scroll bar track in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarLowerTrackVertical4 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarLowerTrackVertical4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the lower part of a vertical scroll bar track in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the lower part of a vertical scroll bar track in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarLowerTrackVertical2 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarLowerTrackVertical2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the lower part of a vertical scroll bar track in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the lower part of a vertical scroll bar track in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarLowerTrackVertical1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarLowerTrackVertical1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the lower part of a vertical scroll bar track in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the lower part of a vertical scroll bar track in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarLowerTrackVertical3 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarLowerTrackVertical3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides VisualStyleElement objects for each state of the right part of a horizontal scroll bar track. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a
different state of the horizontal scroll bar track to the right of the scroll box (also known as the thumb).
Properties
Disabled
Disabled
Gets a visual style element that represents the right part of a horizontal scroll bar track in the disabled state.
Hot
Hot
Gets a visual style element that represents the right part of a horizontal scroll bar track in the hot state.
Normal
Normal
Gets a visual style element that represents the right part of a horizontal scroll bar track in the normal state.
Pressed
Pressed
Gets a visual style element that represents the right part of a horizontal scroll bar track in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link].
Disabled [Link]
[Link]
I n this Article
Gets a visual style element that represents the right part of a horizontal scroll bar track in the disabled state.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the right part of a horizontal scroll bar track in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarRightTrackHorizontal4 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the right part of a horizontal scroll bar track in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the right part of a horizontal scroll bar track in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarRightTrackHorizontal2 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents the right part of a horizontal scroll bar track in the normal state.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the right part of a horizontal scroll bar track in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarRightTrackHorizontal1 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link].
Pressed [Link]
[Link]
I n this Article
Gets a visual style element that represents the right part of a horizontal scroll bar track in the pressed state.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the right part of a horizontal scroll bar track in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarRightTrackHorizontal3 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for each state of the sizing handle of a scroll bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for the sizing handle of a
scroll bar.
Properties
LeftAlign
LeftAlign
Gets a visual style element that represents a sizing handle that is aligned to the left.
RightAlign
RightAlign
Gets a visual style element that represents a sizing handle that is aligned to the right.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a sizing handle that is aligned to the left.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a sizing handle that is aligned to the left.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the LeftAlign property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarSizeBox2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarSizeBox2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the LeftAlign property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a sizing handle that is aligned to the right.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a sizing handle that is aligned to the right.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the RightAlign property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementScrollBarSizeBox1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementScrollBarSizeBox1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the RightAlign property to create a VisualStyleRenderer.
[Link]
[Link]
Class
Provides VisualStyleElement objects for each state of a horizontal scroll box (also known as the thumb). This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a
different state of a horizontal scroll box.
Properties
Disabled
Disabled
Gets a visual style element that represents a horizontal scroll box in the disabled state.
Hot
Hot
Gets a visual style element that represents a horizontal scroll box in the hot state.
Normal
Normal
Gets a visual style element that represents a horizontal scroll box in the normal state.
Pressed
Pressed
Gets a visual style element that represents a horizontal scroll box in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link].
Disabled [Link]
[Link]
I n this Article
Gets a visual style element that represents a horizontal scroll box in the disabled state.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal scroll box in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarThumbButtonHorizontal4 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a horizontal scroll box in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal scroll box in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarThumbButtonHorizontal2 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents a horizontal scroll box in the normal state.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal scroll box in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarThumbButtonHorizontal1 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link].
Pressed [Link]
[Link]
I n this Article
Gets a visual style element that represents a horizontal scroll box in the pressed state.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal scroll box in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarThumbButtonHorizontal3 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides VisualStyleElement objects for each state of a vertical scroll box (also known as the thumb). This class cannot
be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a
different state of a vertical scroll box.
Properties
Disabled
Disabled
Gets a visual style element that represents a vertical scroll box in the disabled state.
Hot
Hot
Gets a visual style element that represents a vertical scroll box in the hot state.
Normal
Normal
Gets a visual style element that represents a vertical scroll box in the normal state.
Pressed
Pressed
Gets a visual style element that represents a vertical scroll box in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link].
Disabled [Link]
[Link]
I n this Article
Gets a visual style element that represents a vertical scroll box in the disabled state.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical scroll box in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarThumbButtonVertical4 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarThumbButtonVertical4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a vertical scroll box in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical scroll box in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarThumbButtonVertical2 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarThumbButtonVertical2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents a vertical scroll box in the normal state.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical scroll box in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarThumbButtonVertical1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarThumbButtonVertical1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link].
Pressed [Link]
[Link]
I n this Article
Gets a visual style element that represents a vertical scroll box in the pressed state.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical scroll box in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarThumbButtonVertical3 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarThumbButtonVertical3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides VisualStyleElement objects for each state of the upper part of a vertical scroll bar track. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the vertical scroll bar track above the scroll box (also known as the thumb).
Properties
Disabled
Disabled
Gets a visual style element that represents the upper part of a vertical scroll bar track in the disabled state.
Hot
Hot
Gets a visual style element that represents the upper part of a vertical scroll bar track in the hot state.
Normal
Normal
Gets a visual style element that represents the upper part of a vertical scroll bar track in the normal state.
Pressed
Pressed
Gets a visual style element that represents the upper part of a vertical scroll bar track in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the upper part of a vertical scroll bar track in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the upper part of a vertical scroll bar track in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarUpperTrackVertical4 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarUpperTrackVertical4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the upper part of a vertical scroll bar track in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the upper part of a vertical scroll bar track in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarUpperTrackVertical2 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarUpperTrackVertical2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the upper part of a vertical scroll bar track in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the upper part of a vertical scroll bar track in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarUpperTrackVertical1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarUpperTrackVertical1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the upper part of a vertical scroll bar track in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the upper part of a vertical scroll bar track in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementScrollBarUpperTrackVertical3 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementScrollBarUpperTrackVertical3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] [Link] Class
Contains classes that provide VisualStyleElement objects for the arrows of a spin button control (also known as an up-
down control). This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for each state of the spin
button arrow specified by the class name.
[Link] [Link].
Down Class
Provides VisualStyleElement objects for each state of the downward-pointing arrow for a spin button control (also
known as an up-down control). This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of the
downward-pointing arrow for a spin button.
Properties
Disabled
Disabled
Gets a visual style element that represents a downward-pointing spin button arrow in the disabled state.
Hot
Hot
Gets a visual style element that represents a downward-pointing spin button arrow in the hot state.
Normal
Normal
Gets a visual style element that represents a downward-pointing spin button arrow in the normal state.
Pressed
Pressed
Gets a visual style element that represents a downward-pointing spin button arrow in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing spin button arrow in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing spin button arrow in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Spin_Down4 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing spin button arrow in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing spin button arrow in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Spin_Down2 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing spin button arrow in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing spin button arrow in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Spin_Down1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing spin button arrow in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing spin button arrow in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Spin_Down3 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the left-pointing arrow for a spin button control (also known as
an up-down control). This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
of the left-pointing arrow for a spin button.
Properties
Disabled
Disabled
Gets a visual style element that represents a left-pointing spin button arrow in the disabled state.
Hot
Hot
Gets a visual style element that represents a left-pointing spin button arrow in the hot state.
Normal
Normal
Gets a visual style element that represents a left-pointing spin button arrow in the normal state.
Pressed
Pressed
Gets a visual style element that represents a left-pointing spin button arrow in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a left-pointing spin button arrow in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing spin button arrow in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Spin_DownHorizontal4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a left-pointing spin button arrow in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing spin button arrow in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Spin_DownHorizontal2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a left-pointing spin button arrow in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing spin button arrow in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Spin_DownHorizontal1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Spin_DownHorizontal1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a left-pointing spin button arrow in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing spin button arrow in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Spin_DownHorizontal3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] [Link]
Class
Provides VisualStyleElement objects for each state of the upward-pointing arrow for a spin button control (also known
as an up-down control). This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of the upward-
pointing arrow for a spin button.
Properties
Disabled
Disabled
Gets a visual style element that represents an upward-pointing spin button arrow in the disabled state.
Hot
Hot
Gets a visual style element that represents an upward-pointing spin button arrow in the hot state.
Normal
Normal
Gets a visual style element that represents an upward-pointing spin button arrow in the normal state.
Pressed
Pressed
Gets a visual style element that represents an upward-pointing spin button arrow in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing spin button arrow in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing spin button arrow in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Spin_Up4 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] [Link].
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing spin button arrow in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing spin button arrow in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Spin_Up2 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing spin button arrow in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing spin button arrow in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Spin_Up1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing spin button arrow in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing spin button arrow in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Spin_Up3 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the right-pointing arrow for a spin button control (also known as
an up-down control). This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a different state of the
right-pointing arrow for a spin button.
Properties
Disabled
Disabled
Gets a visual style element that represents a right-pointing spin button arrow in the disabled state.
Hot
Hot
Gets a visual style element that represents a right-pointing spin button arrow in the hot state.
Normal
Normal
Gets a visual style element that represents a right-pointing spin button arrow in the normal state.
Pressed
Pressed
Gets a visual style element that represents a right-pointing spin button arrow in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a right-pointing spin button arrow in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing spin button arrow in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Spin_UpHorizontal4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a right-pointing spin button arrow in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing spin button arrow in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Spin_UpHorizontal2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a right-pointing spin button arrow in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing spin button arrow in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Spin_UpHorizontal1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Spin_UpHorizontal1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a right-pointing spin button arrow in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing spin button arrow in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Spin_UpHorizontal3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] [Link]
Panel Class
Contains classes that provide VisualStyleElement objects for the parts of the Start menu. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for each state of the Start
menu part specified by the class name.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the bottom border of the Start menu. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents
the bottom border of the Start menu.
Properties
Normal
Normal
Gets a visual style element that represents the bottom border of the Start menu.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the bottom border of the Start menu.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the bottom border of the Start menu.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelLogOff1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementStartPanelLogOff1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the Log Off and Shut Down buttons in the Start menu. This
class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the Log Off and Shut Down buttons.
Properties
Hot
Hot
Gets a visual style element that represents the Log Off and Shut Down buttons in the hot state.
Normal
Normal
Gets a visual style element that represents the Log Off and Shut Down buttons in the normal state.
Pressed
Pressed
Gets a visual style element that represents the Log Off and Shut Down buttons in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the Log Off and Shut Down buttons in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Log Off and Shut Down buttons in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelLogOffButtons2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementStartPanelLogOffButtons2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the Log Off and Shut Down buttons in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Log Off and Shut Down buttons in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelLogOffButtons1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementStartPanelLogOffButtons1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the Log Off and Shut Down buttons in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Log Off and Shut Down buttons in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelLogOffButtons3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementStartPanelLogOffButtons3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the background of the All Programs item in the Start menu. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the background of the All Programs menu item.
Properties
Normal
Normal
Gets a visual style element that represents the background of the All Programs menu item.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the background of the All Programs menu item.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of the All Programs menu item.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelMorePrograms1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementStartPanelMorePrograms1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link] Class
Provides VisualStyleElement objects for each state of the All Programs arrow in the Start menu. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a
different state of the All Programs arrow.
Properties
Hot
Hot
Gets a visual style element that represents the All Programs arrow in the hot state.
Normal
Normal
Gets a visual style element that represents the All Programs arrow in the normal state.
Pressed
Pressed
Gets a visual style element that represents the All Programs arrow in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the All Programs arrow in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the All Programs arrow in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelMoreProgramsArrow2 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementStartPanelMoreProgramsArrow2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents the All Programs arrow in the normal state.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the All Programs arrow in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelMoreProgramsArrow1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementStartPanelMoreProgramsArrow1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link].
Pressed [Link]
[Link]
I n this Article
Gets a visual style element that represents the All Programs arrow in the pressed state.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the All Programs arrow in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelMoreProgramsArrow3 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementStartPanelMoreProgramsArrow3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the background of the right side of the Start menu. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents
the background of the right side of the Start menu.
Properties
Normal
Normal
Gets a visual style element that represents the background of the right side of the Start menu.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the background of the right side of the Start menu.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of the right side of the Start menu.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelPlaceList1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementStartPanelPlaceList1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides a VisualStyleElement for the bar that separates groups of items in the right side of the Start menu. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the bar that separates groups of items in the right side of the Start menu.
Properties
Normal
Normal
Gets a visual style element that represents the bar that separates groups of items in the right side of the Start
menu.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the bar that separates groups of items in the right side of the Start menu.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the bar that separates groups of items in the right side of the Start menu.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelPlaceListSeparator1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementStartPanelPlaceListSeparator1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the preview area of the Start menu. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents
the preview area of the Start menu.
Properties
Normal
Normal
Gets a visual style element that represents the preview area of the Start menu.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the preview area of the Start menu.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the preview area of the Start menu.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelPreview1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementStartPanelPreview1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the background of the left side of the Start menu. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents
the background of the left side of the Start menu.
Properties
Normal
Normal
Gets a visual style element that represents the background of the left side of the Start menu.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the background of the left side of the Start menu.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of the left side of the Start menu.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelProgList1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementStartPanelProgList1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides a VisualStyleElement for the bar that separates groups of items in the left side of the Start menu. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the bar that separates groups of items in the left side of the Start menu.
Properties
Normal
Normal
Gets a visual style element that represents the bar that separates groups of items in the left side of the Start menu.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the bar that separates groups of items in the left side of the Start menu.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the bar that separates groups of items in the left side of the Start menu.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelProgListSeparator1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementStartPanelProgListSeparator1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the top border of the Start menu. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents
the top border of the Start menu.
Properties
Normal
Normal
Gets a visual style element that represents the top border of the Start menu.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the top border of the Start menu.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the top border of the Start menu.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelUserPane1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementStartPanelUserPane1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the background of the user picture on the Start menu. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the background of the user picture on the Start menu.
Properties
Normal
Normal
Gets a visual style element that represents the background of the user picture on the Start menu.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the background of the user picture on the Start menu.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of the user picture on the Start menu.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStartPanelUserPicture1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementStartPanelUserPicture1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
[Link] [Link]
Class
Contains classes that provide VisualStyleElement objects for the parts of the status bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
Each of these classes provides a property that returns a VisualStyleElement for the status bar part specified by the class
name.
[Link] [Link].
Bar Class
Provides a VisualStyleElement for the background of the status bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents the
background of the status bar.
Properties
Normal
Normal
Gets a visual style element that represents the background of the status bar.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents the background of the status bar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of the status bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStatusBar1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for the grip of the status bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents the
status bar grip.
Properties
Normal
Normal
Gets a visual style element that represents the status bar grip.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the status bar grip.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the status bar grip.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStatusGripper1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementStatusGripper1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the pane of the grip in the status bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents
the pane for the status bar grip.
Properties
Normal
Normal
Gets a visual style element that represents a pane for the status bar grip.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a pane for the status bar grip.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pane for the status bar grip.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStatusGripperPane1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementStatusGripperPane1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for a status bar pane. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents a pane
in the status bar.
Properties
Normal
Normal
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a status bar pane.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a status bar pane.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementStatusPane1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link] Class
Contains classes that provide VisualStyleElement objects for the parts of a tab control. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for the part of the tab control
specified by the class name.
[Link] [Link].
Body Class
Provides a VisualStyleElement for the interior of a tab control page. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents the
interior of a tab control page.
Properties
Normal
Normal
Gets a visual style element that represents the interior of a tab control page.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents the interior of a tab control page.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the interior of a tab control page.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabBody1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link]
Class
Provides a VisualStyleElement for the border of a tab control page. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents the border
of a tab control page.
Properties
Normal
Normal
Gets a visual style element that represents the border of a tab control page.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents the border of a tab control page.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the border of a tab control page.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabPane1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link].
TabItem Class
Provides VisualStyleElement objects for each state of a tab control that shares its top, left, and right borders with other
tab controls. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of a tab
control that shares its top, left, and right borders with other tab controls.
Properties
Disabled
Disabled
Gets a visual style element that represents a disabled tab control that shares its top, left, and right borders with
other tab controls.
Hot
Hot
Gets a visual style element that represents a hot tab control that shares its top, left, and right borders with other
tab controls.
Normal
Normal
Gets a visual style element that represents a normal tab control that shares its top, left, and right borders with
other tab controls.
Pressed
Pressed
Gets a visual style element that represents a pressed tab control that shares its top, left, and right borders with
other tab controls.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a disabled tab control that shares its top, left, and right borders with other
tab controls.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled tab control that shares its top, left, and right borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents a hot tab control that shares its top, left, and right borders with other tab
controls.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot tab control that shares its top, left, and right borders with other tab controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTabItem2 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a normal tab control that shares its top, left, and right borders with other tab
controls.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal tab control that shares its top, left, and right borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTabItem1 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a pressed tab control that shares its top, left, and right borders with other
tab controls.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed tab control that shares its top, left, and right borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTabItem3 method from the Paint event-handling method, passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for a tab control that shares its top border with another tab control. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents a tab control that shares its top border with another tab control.
Properties
Normal
Normal
Gets a visual style element that represents a tab control that shares its top border with another tab control.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a tab control that shares its top border with another tab control.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a tab control that shares its top border with another tab control.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTabItemBothEdges1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTabTabItemBothEdges1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of a tab control that shares its top and right borders with other tab
controls. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
a tab control that shares its top and right borders with other tab controls.
Properties
Disabled
Disabled
Gets a visual style element that represents a disabled tab control that shares its top and right borders with other
tab controls.
Hot
Hot
Gets a visual style element that represents a hot tab control that shares its top and right borders with other tab
controls.
Normal
Normal
Gets a visual style element that represents a normal tab control that shares its top and right borders with other tab
controls.
Pressed
Pressed
Gets a visual style element that represents a pressed tab control that shares its top and right borders with other
tab controls.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a disabled tab control that shares its top and right borders with other tab
controls.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled tab control that shares its top and right borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTabItemLeftEdge4 method from the Paint event-handling method, passing e as
PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a hot tab control that shares its top and right borders with other tab
controls.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot tab control that shares its top and right borders with other tab controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTabItemLeftEdge2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTabTabItemLeftEdge2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a normal tab control that shares its top and right borders with other tab
controls.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal tab control that shares its top and right borders with other tab controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTabItemLeftEdge1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTabTabItemLeftEdge1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a pressed tab control that shares its top and right borders with other tab
controls.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed tab control that shares its top and right borders with other tab controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTabItemLeftEdge3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTabTabItemLeftEdge3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of a tab control that shares its top and left borders with other tab
controls. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a different state of
a tab control that shares its top and left borders with other tab controls.
Properties
Disabled
Disabled
Gets a visual style element that represents a disabled tab control that shares its top and left borders with other tab
controls.
Hot
Hot
Gets a visual style element that represents a hot tab control that shares its top and left borders with other tab
controls.
Normal
Normal
Gets a visual style element that represents a normal tab control that shares its top and left borders with other tab
controls.
Pressed
Pressed
Gets a visual style element that represents a pressed tab control that shares its top and left borders with other tab
controls.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a disabled tab control that shares its top and left borders with other tab
controls.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled tab control that shares its top and left borders with other tab controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTabTabItemRightEdge4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a hot tab control that shares its top and left borders with other tab controls.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot tab control that shares its top and left borders with other tab controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTabItemRightEdge2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTabTabItemRightEdge2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a normal tab control that shares its top and left borders with other tab
controls.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal tab control that shares its top and left borders with other tab controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTabItemRightEdge1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTabTabItemRightEdge1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a pressed tab control that shares its top and left borders with other tab
controls.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed tab control that shares its top and left borders with other tab controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTabItemRightEdge3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTabTabItemRightEdge3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for each state of a tab control that shares its bottom, left, and right borders with
other tab controls. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of a tab
control that shares its bottom, left, and right borders with other tab controls.
Properties
Disabled
Disabled
Gets a visual style element that represents a disabled tab control that shares its bottom, left, and right borders with
other tab controls.
Hot
Hot
Gets a visual style element that represents a hot tab control that shares its bottom, left, and right borders with
other tab controls.
Normal
Normal
Gets a visual style element that represents a normal tab control that shares its bottom, left, and right borders with
other tab controls.
Pressed
Pressed
Gets a visual style element that represents a pressed tab control that shares its bottom, left, and right borders with
other tab controls.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a disabled tab control that shares its bottom, left, and right borders with
other tab controls.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled tab control that shares its bottom, left, and right borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItem4 method from the Paint event-handling method, passing e as
PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a hot tab control that shares its bottom, left, and right borders with other tab
controls.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot tab control that shares its bottom, left, and right borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItem2 method from the Paint event-handling method, passing e as
PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a normal tab control that shares its bottom, left, and right borders with other
tab controls.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal tab control that shares its bottom, left, and right borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItem1 method from the Paint event-handling method, passing e as
PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a pressed tab control that shares its bottom, left, and right borders with
other tab controls.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed tab control that shares its bottom, left, and right borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItem3 method from the Paint event-handling method, passing e as
PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for a tab control that shares its bottom border with another tab control. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents a tab control that shares its bottom border with another tab control.
Properties
Normal
Normal
Gets a visual style element that represents a tab control that shares its bottom border with another tab control.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a tab control that shares its bottom border with another tab control.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a tab control that shares its bottom border with another tab control.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItemBothEdges1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTabTopTabItemBothEdges1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of a tab control that shares its bottom and right borders with other
tab controls. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of a tab control that shares its bottom and right borders with other tab controls.
Properties
Disabled
Disabled
Gets a visual style element that represents a disabled tab control that shares its bottom and right borders with
other tab controls.
Hot
Hot
Gets a visual style element that represents a hot tab control that shares its bottom and right borders with other tab
controls.
Normal
Normal
Gets a visual style element that represents a normal tab control that shares its bottom and right borders with other
tab controls.
Pressed
Pressed
Gets a visual style element that represents a pressed tab control that shares its bottom and right borders with
other tab controls.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a disabled tab control that shares its bottom and right borders with other
tab controls.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled tab control that shares its bottom and right borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItemLeftEdge4 method from the Paint event-handling method, passing e as
PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a hot tab control that shares its bottom and right borders with other tab
controls.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot tab control that shares its bottom and right borders with other tab controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItemLeftEdge2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTabTopTabItemLeftEdge2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a normal tab control that shares its bottom and right borders with other tab
controls.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal tab control that shares its bottom and right borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItemLeftEdge1 method from the Paint event-handling method, passing e as
PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a pressed tab control that shares its bottom and right borders with other tab
controls.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed tab control that shares its bottom and right borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItemLeftEdge3 method from the Paint event-handling method, passing e as
PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of a tab control that shares its bottom and left borders with other
tab controls. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a different state
of a tab control that shares its bottom and left borders with other tab controls.
Properties
Disabled
Disabled
Gets a visual style element that represents a disabled tab control that shares its bottom and left borders with other
tab controls.
Hot
Hot
Gets a visual style element that represents a hot tab control that shares its bottom and left borders with other tab
controls.
Normal
Normal
Gets a visual style element that represents a normal tab control that shares its bottom and left borders with other
tab controls.
Pressed
Pressed
Gets a visual style element that represents a pressed tab control that shares its bottom and left borders with other
tab controls.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a disabled tab control that shares its bottom and left borders with other tab
controls.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled tab control that shares its bottom and left borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItemRightEdge4 method from the Paint event-handling method, passing e as
PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a hot tab control that shares its bottom and left borders with other tab
controls.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot tab control that shares its bottom and left borders with other tab controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItemRightEdge2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTabTopTabItemRightEdge2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a normal tab control that shares its bottom and left borders with other tab
controls.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal tab control that shares its bottom and left borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItemRightEdge1 method from the Paint event-handling method, passing e as
PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a pressed tab control that shares its bottom and left borders with other tab
controls.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a pressed tab control that shares its bottom and left borders with other tab
controls.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTabTopTabItemRightEdge3 method from the Paint event-handling method, passing e as
PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] [Link]
Band Class
Contains classes that provide VisualStyleElement objects for parts of the taskbar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
Each of these classes provides a property that returns a VisualStyleElement for the part of the taskbar specified by the
class name.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for a flashing window button in the taskbar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents a flashing window button in the taskbar.
Properties
Normal
Normal
Gets a visual style element that represents a flashing window button in the taskbar.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a flashing window button in the taskbar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a flashing window button in the taskbar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTaskBandFlashButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTaskBandFlashButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
Class
Provides a VisualStyleElement for a flashing menu item of a window button in the taskbar. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents a flashing menu item of a window button in the taskbar.
Properties
Normal
Normal
Gets a visual style element that represents a flashing menu item for a window button in the taskbar.
See Also
VisualStyleElement VisualStyleElement
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents a flashing menu item for a window button in the taskbar.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a flashing menu item for a window button in the taskbar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTaskBandFlashButtonGroupMenu1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElement_Button_PushButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for a group counter of the taskbar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents a group counter of the taskbar.
Properties
Normal
Normal
Gets a visual style element that represents a group counter for the taskbar.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a group counter for the taskbar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a group counter for the taskbar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTaskBandGroupCount1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTaskBandGroupCount1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link]
Class
Contains classes that provide VisualStyleElement objects for the parts of the taskbar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides a property that returns a VisualStyleElement for the part of the taskbar specified by the
class name.
[Link] Visual
[Link] Class
Provides a VisualStyleElement for the background of a taskbar that is docked on the bottom of the screen. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the background of a taskbar that is docked on the bottom of the screen.
Properties
Normal
Normal
Gets a visual style element that represents the background of a taskbar that is docked on the bottom of the screen.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the background of a taskbar that is docked on the bottom of the screen.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of a taskbar that is docked on the bottom of the screen.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTaskbarBackgroundBotton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTaskbarBackgroundBottom1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the background of a taskbar that is docked on the left side of the screen. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the background of a taskbar that is docked on the left side of the screen.
Properties
Normal
Normal
Gets a visual style element that represents the background of a taskbar that is docked on the left side of the screen.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the background of a taskbar that is docked on the left side of the screen.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of a taskbar that is docked on the left side of the screen.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTaskbarBackgroundLeft1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTaskbarBackgroundLeft1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the background of a taskbar that is docked on the right side of the screen. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the background of a taskbar that is docked on the right side of the screen.
Properties
Normal
Normal
Gets a visual style element that represents the background of a taskbar that is docked on the right side of the
screen.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the background of a taskbar that is docked on the right side of the screen.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of a taskbar that is docked on the right side of the screen.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTaskbarBackgroundRight1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTaskbarBackgroundRight1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the background of a taskbar that is docked on the top of the screen. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the background of a taskbar that is docked on the top of the screen.
Properties
Normal
Normal
Gets a visual style element that represents the background of a taskbar that is docked on the top of the screen.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the background of a taskbar that is docked on the top of the screen.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of a taskbar that is docked on the top of the screen.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTaskbarBackgroundTop1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTaskbarBackgroundTop1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the sizing bar of a taskbar that is docked on the bottom of the screen. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the sizing bar of a taskbar that is docked on the bottom of the screen.
Properties
Normal
Normal
Gets a visual style element that represents the sizing bar for a taskbar that is docked on the bottom of the screen.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the sizing bar for a taskbar that is docked on the bottom of the screen.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the sizing bar for a taskbar that is docked on the bottom of the screen.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTaskbarSizingBarBottom1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTaskbarSizingBarBottom1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the sizing bar of a taskbar that is docked on the left side of the screen. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the sizing bar of a taskbar that is docked on the left side of the screen.
Properties
Normal
Normal
Gets a visual style element that represents the sizing bar for a taskbar that is docked on the left side of the screen.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the sizing bar for a taskbar that is docked on the left side of the screen.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the sizing bar for a taskbar that is docked on the left side of the screen.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTaskbarSizingBarLeft1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTaskbarSizingBarLeft1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the sizing bar of a taskbar that is docked on the right side of the screen. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the sizing bar of a taskbar that is docked on the right side of the screen.
Properties
Normal
Normal
Gets a visual style element that represents the sizing bar for a taskbar that is docked on the right side of the
screen.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the sizing bar for a taskbar that is docked on the right side of the screen.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the sizing bar for a taskbar that is docked on the right side of the screen.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementSizingBarRight1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTaskbarSizingBarRight1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the sizing bar of a taskbar that is docked on the top of the screen. This class cannot
be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the sizing bar of a taskbar that is docked on the top of the screen.
Properties
Normal
Normal
Gets a visual style element that represents the sizing bar for a taskbar that is docked on the top of the screen.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the sizing bar for a taskbar that is docked on the top of the screen.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the sizing bar for a taskbar that is docked on the top of the screen.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTaskbarSizingBarTop1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTaskbarSizingBarTop1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
TaskbarClock Class
Contains a class that provides a VisualStyleElement for the background of the taskbar clock. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the [Link]
class is defined. The Normal property of this class returns a VisualStyleElement for the background of the taskbar
clock.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the background of the taskbar clock. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents
the background of the taskbar clock.
Properties
Normal
Normal
Gets a visual style element that represents the background of the taskbar clock.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the background of the taskbar clock.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of the taskbar clock.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTaskbarClockTime1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTaskbarClockTime1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link]
Class
Contains classes that provide VisualStyleElement objects for the parts of a text box. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for each state of the text box
element specified by the class name.
[Link] [Link]
[Link] Class
Provides a VisualStyleElement for the caret of a text box. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents the
insertion point of a text box.
Properties
Normal
Normal
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a text box caret.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the insertion point of a text box.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTextBoxCaret1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTextBoxCaret1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for each state of a text box. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of a
text box.
Properties
Assist
Assist
Gets a visual style element that represents a text box in assist mode.
Disabled
Disabled
Focused
Focused
Gets a visual style element that represents a text box that has focus.
Hot
Hot
Normal
Normal
ReadOnly
ReadOnly
Selected
Selected
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a text box in assist mode.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a text box in assist mode.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Assist property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTextBoxTextEdit7 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTextBoxTextEdit7(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Assist property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a disabled text box.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a disabled text box.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTextBoxTextEdit4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTextBoxTextEdit4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a text box that has focus.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a text box that has focus.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Focused property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTextBoxTextEdit5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTextBoxTextEdit5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Focused property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a hot text box.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a hot text box.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTextBoxTextEdit2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTextBoxTextEdit2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a normal text box.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a normal text box.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTextBoxTextEdit1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTextBoxTextEdit1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a read-only text box.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a read-only text box.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the ReadOnly property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementTextBoxTextEdit6 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTextBoxTextEdit6(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the ReadOnly property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a selected text box.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a selected text box.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Selected property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTextBoxTextEdit3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Selected property to create a VisualStyleRenderer.
[Link] [Link]
Class
Contains classes that provide VisualStyleElement objects for the parts of a toolbar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides a property that returns one or more VisualStyleElement objects for the part of the
toolbar specified by the class name.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for each state of a toolbar button. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of a
toolbar button.
Properties
Checked
Checked
Gets a visual style element that represents a toolbar button in the checked state.
Disabled
Disabled
Gets a visual style element that represents a toolbar button in the disabled state.
Hot
Hot
Gets a visual style element that represents a toolbar button in the hot state.
HotChecked
HotChecked
Gets a visual style element that represents a toolbar button in the hot and checked states.
Normal
Normal
Gets a visual style element that represents a toolbar button in the normal state.
Pressed
Pressed
Gets a visual style element that represents a toolbar button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a toolbar button in the checked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a toolbar button in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Checked property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarButton5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarButton5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Checked property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a toolbar button in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a toolbar button in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a toolbar button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a toolbar button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a toolbar button in the hot and checked states.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a toolbar button in the hot and checked states.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the HotChecked property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementToolBarButton6 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarButton6(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the HotChecked property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a toolbar button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a toolbar button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a toolbar button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a toolbar button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of a drop-down toolbar button. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of a drop-down toolbar button.
Properties
Checked
Checked
Gets a visual style element that represents a drop-down toolbar button in the checked state.
Disabled
Disabled
Gets a visual style element that represents a drop-down toolbar button in the disabled state.
Hot
Hot
Gets a visual style element that represents a drop-down toolbar button in the hot state.
HotChecked
HotChecked
Gets a visual style element that represents a drop-down toolbar button in the hot and checked states.
Normal
Normal
Gets a visual style element that represents a drop-down toolbar button in the normal state.
Pressed
Pressed
Gets a visual style element that represents a drop-down toolbar button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a drop-down toolbar button in the checked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a drop-down toolbar button in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Checked property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarDropDownButton5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarDropDownButton5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Checked property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a drop-down toolbar button in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a drop-down toolbar button in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarDropDownButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarDropDownButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a drop-down toolbar button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a drop-down toolbar button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarDropDownButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarDropDownButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
Checked [Link].
HotChecked
I n this Article
Gets a visual style element that represents a drop-down toolbar button in the hot and checked states.
public static [Link] HotChecked { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a drop-down toolbar button in the hot and checked states.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the HotChecked property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementToolBarDropDownButton6 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarDropDownButton6(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the HotChecked property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a drop-down toolbar button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a drop-down toolbar button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarDropDownButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarDropDownButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a drop-down toolbar button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a drop-down toolbar button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarDropDownButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarDropDownButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides a VisualStyleElement for a horizontal separator of the toolbar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents a horizontal separator of the toolbar.
Properties
Normal
Normal
Gets a visual style element that represents a horizontal separator of the toolbar.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a horizontal separator of the toolbar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal separator of the toolbar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarSeparatorHorizontal1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSeparatorHorizontal1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for a vertical separator of the toolbar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents a vertical separator of the toolbar.
Properties
Normal
Normal
Gets a visual style element that represents a vertical separator of the toolbar.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a vertical separator of the toolbar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical separator of the toolbar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarSeparatorVertical1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSeparatorVertical1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the regular button portion of a combined regular button and
drop-down button. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the regular button portion of a combined regular button and drop-down button.
Properties
Checked
Checked
Gets a visual style element that represents a split button in the checked state.
Disabled
Disabled
Gets a visual style element that represents a split button in the disabled state.
Hot
Hot
Gets a visual style element that represents a split button in the hot state.
HotChecked
HotChecked
Gets a visual style element that represents a split button in the hot and checked states.
Normal
Normal
Gets a visual style element that represents a split button in the normal state.
Pressed
Pressed
Gets a visual style element that represents a split button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a split button in the checked state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a split button in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Checked property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarSplitButton5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSplitButton5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Checked property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a split button in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a split button in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarSplitButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSplitButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a split button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a split button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarSplitButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSplitButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a split button in the hot and checked states.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a split button in the hot and checked states.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the HotChecked property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementToolBarSplitButton6 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSplitButton6(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the HotChecked property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a split button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a split button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarSplitButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSplitButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a split button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a split button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarSplitButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSplitButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides VisualStyleElement objects for each state of the drop-down portion of a combined regular button and drop-
down button. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a
different state of the drop-down portion of a combined regular button and drop-down button.
Properties
Checked
Checked
Gets a visual style element that represents a split drop-down button in the checked state.
Disabled
Disabled
Gets a visual style element that represents a split drop-down button in the disabled state.
Hot
Hot
Gets a visual style element that represents a split drop-down button in the hot state.
HotChecked
HotChecked
Gets a visual style element that represents a split drop-down button in the hot and checked states.
Normal
Normal
Gets a visual style element that represents a split drop-down button in the normal state.
Pressed
Pressed
Gets a visual style element that represents a split drop-down button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link].
Checked [Link]
[Link]
I n this Article
Gets a visual style element that represents a split drop-down button in the checked state.
public static [Link] Checked { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a split drop-down button in the checked state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Checked property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarSplitButtonDropDown5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSplitButtonDropDown5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Checked property to create a VisualStyleRenderer.
[Link].
Disabled [Link]
[Link]
I n this Article
Gets a visual style element that represents a split drop-down button in the disabled state.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a split drop-down button in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarSplitButtonDropDown4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSplitButtonDropDown4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a split drop-down button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a split drop-down button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarSplitButtonDropDown2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSplitButtonDropDown2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
Checked [Link]
[Link]
I n this Article
Gets a visual style element that represents a split drop-down button in the hot and checked states.
public static [Link] HotChecked { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a split drop-down button in the hot and checked states.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the HotChecked property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call
the DrawVisualStyleElementToolBarSplitButtonDropDown6 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the HotChecked property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a split drop-down button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a split drop-down button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarSplitButtonDropDown1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSplitButtonDropDown1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a split drop-down button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a split drop-down button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolBarSplitButtonDropDown3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolBarSplitButtonDropDown3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] [Link]
Class
Contains classes that provide VisualStyleElement objects for the parts of a ToolTip. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for the part of the ToolTip
specified by the class name.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for a balloon ToolTip. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a balloon ToolTip.
Properties
Link
Link
Gets a visual style element that represents a balloon ToolTip that contains a link.
Normal
Normal
Gets a visual style element that represents a balloon ToolTip that contains text.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a balloon ToolTip that contains a link.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a balloon ToolTip that contains a link.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Link property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolTipBalloon2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolTipBalloon2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Link property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a balloon ToolTip that contains text.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a balloon ToolTip that contains text.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolTipBalloon1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolTipBalloon1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the title area of a balloon ToolTip. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents
the title area of a balloon ToolTip.
Properties
Normal
Normal
Gets a visual style element that represents the title area of a balloon ToolTip.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the title area of a balloon ToolTip.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title area of a balloon ToolTip.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolTipBalloonTitle1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolTipBalloonTitle1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link]
[Link] Class
Provides VisualStyleElement objects for each state of the Close button of a ToolTip. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a different state of the Close
button of a ToolTip.
Properties
Hot
Hot
Gets a visual style element that represents the ToolTip Close button in the hot state.
Normal
Normal
Gets a visual style element that represents the ToolTip Close button in the normal state.
Pressed
Pressed
Gets a visual style element that represents the ToolTip Close button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyleElement.
[Link]
I n this Article
Gets a visual style element that represents the ToolTip Close button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the ToolTip Close button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolTipClose2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolTipClose2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the ToolTip Close button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the ToolTip Close button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolTipClose1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolTipClose1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the ToolTip Close button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the ToolTip Close button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolTipClose3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolTipClose3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for a standard ToolTip. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a standard ToolTip.
Properties
Link
Link
Gets a visual style element that represents a standard ToolTip that contains a link.
Normal
Normal
Gets a visual style element that represents a standard ToolTip that contains text.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a standard ToolTip that contains a link.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a standard ToolTip that contains a link.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Link property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolTipStandard2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolTipStandard2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Link property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a standard ToolTip that contains text.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a standard ToolTip that contains text.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolTipStandard1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolTipStandard1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the title area of a standard ToolTip. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the title area of a standard ToolTip.
Properties
Normal
Normal
Gets a visual style element that represents the title area of a standard ToolTip.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the title area of a standard ToolTip.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title area of a standard ToolTip.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementToolTipStandardTitle1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementToolTipStandardTitle1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link]
Class
Contains classes that provide VisualStyleElement objects for the parts of the track bar control. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides a property that returns one or more VisualStyleElement objects for the part of the track
bar specified by the class name.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for each state of the slider (also known as the thumb) of a horizontal track bar.
This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of the
slider of a horizontal track bar.
Properties
Disabled
Disabled
Gets a visual style element that represents the slider of a horizontal track bar in the disabled state.
Focused
Focused
Gets a visual style element that represents the slider of a horizontal track bar that has focus.
Hot
Hot
Gets a visual style element that represents the slider of a horizontal track bar in the hot state.
Normal
Normal
Gets a visual style element that represents the slider of a horizontal track bar in the normal state.
Pressed
Pressed
Gets a visual style element that represents the slider of a horizontal track bar in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the slider of a horizontal track bar in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the slider of a horizontal track bar in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumb5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumb5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the slider of a horizontal track bar that has focus.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the slider of a horizontal track bar that has focus.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Focused property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumb4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumb4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Focused property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the slider of a horizontal track bar in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the slider of a horizontal track bar in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumb2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumb2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the slider of a horizontal track bar in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the slider of a horizontal track bar in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumb1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumb1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the slider of a horizontal track bar in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the slider of a horizontal track bar in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumb3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumb3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the downward-pointing track bar slider (also known as the
thumb). This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the downward-pointing track bar slider.
Properties
Disabled
Disabled
Gets a visual style element that represents a downward-pointing track bar slider in the disabled state.
Focused
Focused
Gets a visual style element that represents a downward-pointing track bar slider that has focus.
Hot
Hot
Gets a visual style element that represents a downward-pointing track bar slider in the hot state.
Normal
Normal
Gets a visual style element that represents a downward-pointing track bar slider in the normal state.
Pressed
Pressed
Gets a visual style element that represents a downward-pointing track bar slider in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing track bar slider in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing track bar slider in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbBottom5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbBottom5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing track bar slider that has focus.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing track bar slider that has focus.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Focused property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbBottom4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbBottom4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Focused property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing track bar slider in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing track bar slider in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbBottom2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbBottom2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing track bar slider in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing track bar slider in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbBottom1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbBottom1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a downward-pointing track bar slider in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a downward-pointing track bar slider in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbBottom3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbBottom3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the left-pointing track bar slider (also known as the thumb). This
class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the left-pointing track bar slider.
Properties
Disabled
Disabled
Gets a visual style element that represents a left-pointing track bar slider in the disabled state.
Focused
Focused
Gets a visual style element that represents a left-pointing track bar slider that has focus.
Hot
Hot
Gets a visual style element that represents a left-pointing track bar slider in the hot state.
Normal
Normal
Gets a visual style element that represents a left-pointing track bar slider in the normal state.
Pressed
Pressed
Gets a visual style element that represents a left-pointing track bar slider in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a left-pointing track bar slider in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing track bar slider in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbLeft5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbLeft5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a left-pointing track bar slider that has focus.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing track bar slider that has focus.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Focused property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbLeft4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbLeft4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Focused property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a left-pointing track bar slider in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing track bar slider in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbLeft2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbLeft2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a left-pointing track bar slider in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing track bar slider in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbLeft1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbLeft1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a left-pointing track bar slider in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a left-pointing track bar slider in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbLeft3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbLeft3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the right-pointing track bar slider (also known as the thumb).
This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
of the right-pointing track bar slider.
Properties
Disabled
Disabled
Gets a visual style element that represents a right-pointing track bar slider in the disabled state.
Focused
Focused
Gets a visual style element that represents a right-pointing track bar slider that has focus.
Hot
Hot
Gets a visual style element that represents a right-pointing track bar slider in the hot state.
Normal
Normal
Gets a visual style element that represents a right-pointing track bar slider in the normal state.
Pressed
Pressed
Gets a visual style element that represents a right-pointing track bar slider in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a right-pointing track bar slider in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing track bar slider in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbRight5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbRight5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a right-pointing track bar slider that has focus.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing track bar slider that has focus.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Focused property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbRight4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbRight4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Focused property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a right-pointing track bar slider in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing track bar slider in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbRight2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbRight2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a right-pointing track bar slider in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing track bar slider in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbRight1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbRight1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a right-pointing track bar slider in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a right-pointing track bar slider in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbRight3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbRight3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the upward-pointing track bar slider (also known as the thumb).
This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the upward-pointing track bar slider.
Properties
Disabled
Disabled
Gets a visual style element that represents an upward-pointing track bar slider in the disabled state.
Focused
Focused
Gets a visual style element that represents an upward-pointing track bar slider that has focus.
Hot
Hot
Gets a visual style element that represents an upward-pointing track bar slider in the hot state.
Normal
Normal
Gets a visual style element that represents an upward-pointing track bar slider in the normal state.
Pressed
Pressed
Gets a visual style element that represents an upward-pointing track bar slider in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing track bar slider in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing track bar slider in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbTop5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbTop5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing track bar slider that has focus.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing track bar slider that has focus.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Focused property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbTop4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbTop4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Focused property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing track bar slider in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing track bar slider in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbTop2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbTop2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing track bar slider in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing track bar slider in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbTop1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbTop1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents an upward-pointing track bar slider in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an upward-pointing track bar slider in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbTop3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbTop3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the slider (also known as the thumb) of a vertical track bar. This
class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the slider for a vertical track bar.
Properties
Disabled
Disabled
Gets a visual style element that represents the slider of a vertical track bar in the disabled state.
Focused
Focused
Gets a visual style element that represents the slider of a vertical track bar that has focus.
Hot
Hot
Gets a visual style element that represents the slider of a vertical track bar in the hot state.
Normal
Normal
Gets a visual style element that represents the slider of a vertical track bar in the normal state.
Pressed
Pressed
Gets a visual style element that represents the slider of a vertical track bar in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the slider of a vertical track bar in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the slider of a vertical track bar in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbVertical5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbVertical5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the slider of a vertical track bar that has focus.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the slider of a vertical track bar that has focus.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Focused property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbVertical4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbVertical4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Focused property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the slider of a vertical track bar in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the slider of a vertical track bar in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbVertical2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbVertical2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the slider of a vertical track bar in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the slider of a vertical track bar in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbVertical1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbVertical1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the slider of a vertical track bar in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the slider of a vertical track bar in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarThumbVertical3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarThumbVertical3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for a single tick of a horizontal track bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents a
single tick of a horizontal track bar.
Properties
Normal
Normal
Gets a visual style element that represents a single tick of a horizontal track bar.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a single tick of a horizontal track bar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a single tick of a horizontal track bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarTicks1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarTicks1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for a single tick of a vertical track bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents a single tick of a vertical track bar.
Properties
Normal
Normal
Gets a visual style element that represents a single tick of a vertical track bar.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a single tick of a vertical track bar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a single tick of a vertical track bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarTicksVertical1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarTicksVertical1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for the track for a horizontal track bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents the
track for a horizontal track bar.
Properties
Normal
Normal
Gets a visual style element that represents the track for a horizontal track bar.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the track for a horizontal track bar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the track for a horizontal track bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarTrack1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarTrack1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the track for a vertical track bar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the track for a vertical track bar.
Properties
Normal
Normal
Gets a visual style element that represents the track for a vertical track bar.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the track for a vertical track bar.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the track for a vertical track bar.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrackBarTrackVertical1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrackBarTrackVertical1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link]
Notify Class
Contains classes that provide VisualStyleElement objects for the background of the notification area, which is located at
the far right of the taskbar. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
Each of these classes provides a property that returns a VisualStyleElement for the notification area background
specified by the class name.
[Link] Visual
[Link] Class
Provides a VisualStyleElement for an animated background of the notification area. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement
that represents an animated background of the notification area, which is located at the far right of the taskbar.
Properties
Normal
Normal
Gets a visual style element that represents an animated background of the notification area.
See Also
VisualStyleElement VisualStyleElement
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents an animated background of the notification area.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents an animated background of the notification area.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrayNotifyAnimateBackground1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementTrayNotifyAnimateBackground1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides a VisualStyleElement for the background of the notification area. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that
represents the background of the notification area, which is located at the far right of the taskbar.
Properties
Normal
Normal
Gets a visual style element that represents the background of the notification area.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the background of the notification area.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of the notification area.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTrayNotifyBackground1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTrayNotifyBackground1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] [Link]
Class
Contains classes that provide VisualStyleElement objects for the parts of the tree view control. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for the tree view part specified
by the class name.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for a tree view branch. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents a
branch of a tree view control.
Properties
Normal
Normal
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a tree view branch.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a tree view branch.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTreeViewBranch1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTreeViewBranch1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for the plus sign (+) and minus sign (-) buttons of a tree view control. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The properties of the [Link] class get a VisualStyleElement for the plus sign and minus
sign buttons that display next to a tree view node that contains child elements.
Properties
Closed
Closed
Gets a visual style element that represents a minus sign (-) button of a tree view node.
Opened
Opened
Gets a visual style element that represents a plus sign (+) button of a tree view node.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a minus sign (-) button of a tree view node.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a minus sign button of a tree view node.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Closed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTreeViewGlyph2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTreeViewGlyph2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Closed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a plus sign (+) button of a tree view node.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a plus sign button of a tree view node.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Opened property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTreeViewGlyph1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTreeViewGlyph1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Opened property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for each state of a tree view item. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of a tree
view item.
Properties
Disabled
Disabled
Gets a visual style element that represents a tree view item in the disabled state.
Hot
Hot
Gets a visual style element that represents a tree view item in the hot state.
Normal
Normal
Gets a visual style element that represents a tree view item in the normal state.
Selected
Selected
Gets a visual style element that represents a tree view item that is in the selected state and has focus.
SelectedNotFocus
SelectedNotFocus
Gets a visual style element that represents a tree view item that is in the selected state but does not have focus.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a tree view item in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a tree view item in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTreeViewItem4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTreeViewItem4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a tree view item in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a tree view item in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTreeViewItem2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTreeViewItem2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a tree view item in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a tree view item in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTreeViewItem1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTreeViewItem1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a tree view item that is in the selected state and has focus.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a tree view item that is in the selected state and has focus.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Selected property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementTreeViewItem3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTreeViewItem3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Selected property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a tree view item that is in the selected state but does not have focus.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a tree view item that is in the selected state but does not have focus.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the SelectedNotFocus property. To run this example, paste it into a Windows Form. Handle the form's Paint event
and call the DrawVisualStyleElementTreeViewItem5 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementTreeViewItem5(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the SelectedNotFocus property to create a VisualStyleRenderer.
[Link] [Link]
Class
Contains classes that provide VisualStyleElement objects for the parts of a window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] class provides a foundation in which the following classes are defined:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
Each of these classes provides one or more properties that return a VisualStyleElement for the part of the window
specified by the class name.
[Link] VisualStyleElement.
[Link] Class
Provides VisualStyleElement objects for each state of the title bar of a window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of the
title bar of a window.
Properties
Active
Active
Gets a visual style element that represents the title bar of an active window.
Disabled
Disabled
Gets a visual style element that represents the title bar of a disabled window.
Inactive
Inactive
Gets a visual style element that represents the title bar of an inactive window.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the title bar of an active window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of an active window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Active property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowCaption1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowCaption1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Active property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the title bar of a disabled window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of a disabled window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowCaption3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowCaption3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the title bar of an inactive window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of an inactive window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Inactive property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowCaption2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowCaption2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Inactive property to create a VisualStyleRenderer.
[Link]
[Link] Class
Provides a VisualStyleElement that represents the sizing template of the title bar of a window. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement
that represents the sizing template of the title bar of a window.
Properties
Normal
Normal
Gets a visual style element that represents the sizing template of the title bar of a window.
See Also
VisualStyleElement VisualStyleElement
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents the sizing template of the title bar of a window.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the sizing template of the title bar of a window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowCaptionSizingTemplate1 method from the Paint event-handling method, passing e
as PaintEventArgs.
public void DrawVisualStyleElementWindowCaptionSizingTemplate1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the Close button of a window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
of the Close button of a window.
Properties
Disabled
Disabled
Gets a visual style element that represents a Close button in the disabled state.
Hot
Hot
Gets a visual style element that represents a Close button in the hot state.
Normal
Normal
Gets a visual style element that represents a Close button in the normal state.
Pressed
Pressed
Gets a visual style element that represents a Close button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Close button in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Close button in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowCloseButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowCloseButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a Close button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Close button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowCloseButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowCloseButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Close button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Close button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowCloseButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowCloseButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Close button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Close button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowCloseButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowCloseButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyleElement.
[Link] Class
Provides a VisualStyleElement for the background of a dialog box. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement that represents the
background of a dialog box.
Properties
Normal
Normal
Gets a visual style element that represents the background of a dialog box.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the background of a dialog box.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the background of a dialog box.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowDialog1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowDialog1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the bottom border of a window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
of the bottom border of a window.
Properties
Active
Active
Gets a visual style element that represents the bottom border of an active window.
Inactive
Inactive
Gets a visual style element that represents the bottom border of an inactive window.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the bottom border of an active window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the bottom border of an active window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Active property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowFrameBottom1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowFrameBottom1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Active property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the bottom border of an inactive window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the bottom border of an inactive window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Inactive property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowFrameBottom1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowFrameBottom2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Inactive property to create a VisualStyleRenderer.
[Link]
[Link]
Class
Provides a VisualStyleElement that represents the sizing template of the bottom border of a window. This class cannot
be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a
VisualStyleElement that represents the sizing template of the bottom border of a window.
Properties
Normal
Normal
Gets a visual style element that represents the sizing template of the bottom border of a window.
See Also
VisualStyleElement VisualStyleElement
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents the sizing template of the bottom border of a window.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the sizing template of the bottom border of a window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowFrameBottomSizingTemplate1 method from the Paint event-handling method,
passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the left border of a window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the left border of a window.
Properties
Active
Active
Gets a visual style element that represents the left border of an active window.
Inactive
Inactive
Gets a visual style element that represents the left border of an inactive window.
See Also
VisualStyleElement VisualStyleElement
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents the left border of an active window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the left border of an active window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Active property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowFrameLeft1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowFrameLeft1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Active property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the left border of an inactive window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the left border of an inactive window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Inactive property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowFrameLeft2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowFrameLeft2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Inactive property to create a VisualStyleRenderer.
[Link]
[Link]
Class
Provides a VisualStyleElement that represents the sizing template of the left border of a window. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a VisualStyleElement
that represents the sizing template of the left border of a window.
Properties
Normal
Normal
Gets a visual style element that represents the sizing template of the left border of a window.
See Also
VisualStyleElement VisualStyleElement
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents the sizing template of the left border of a window.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the sizing template of the left border of a window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowFrameLeftSizingTemplate1 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the right border of a window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the right border of a window.
Properties
Active
Active
Gets a visual style element that represents the right border of an active window.
Inactive
Inactive
Gets a visual style element that represents the right border of an inactive window.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the right border of an active window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the right border of an active window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Active property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowFrameRight1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowFrameRight1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Active property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the right border of an inactive window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the right border of an inactive window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Inactive property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowFrameRight2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowFrameRight2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Inactive property to create a VisualStyleRenderer.
[Link]
[Link]
Class
Provides a VisualStyleElement that represents the sizing template of the right border of a window. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a
VisualStyleElement that represents the sizing template of the right border of a window.
Properties
Normal
Normal
Gets a visual style element that represents the sizing template of the right border of a window.
See Also
VisualStyleElement VisualStyleElement
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents the sizing template of the right border of a window.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the sizing template of the right border of a window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowFrameRightSizingTemplate1 method from the Paint event-handling method, passing
e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the Help button of a window or dialog box. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the Help button of a window or dialog box.
Properties
Disabled
Disabled
Gets a visual style element that represents a Help button in the disabled state.
Hot
Hot
Gets a visual style element that represents a Help button in the hot state.
Normal
Normal
Gets a visual style element that represents a Help button in the normal state.
Pressed
Pressed
Gets a visual style element that represents a Help button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Help button in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Help button in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowHelpButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowHelpButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a Help button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Help button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowHelpButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowHelpButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Help button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Help button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowHelpButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowHelpButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Help button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Help button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowHelpButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowHelpButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the horizontal scroll bar of a window. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the horizontal scroll bar of a window.
Properties
Disabled
Disabled
Gets a visual style element that represents a horizontal scroll bar in the disabled state.
Hot
Hot
Gets a visual style element that represents a horizontal scroll bar in the hot state.
Normal
Normal
Gets a visual style element that represents a horizontal scroll bar in the normal state.
Pressed
Pressed
Gets a visual style element that represents a horizontal scroll bar in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a horizontal scroll bar in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal scroll bar in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowHorizontalScroll4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowHorizontalScroll4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a horizontal scroll bar in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal scroll bar in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowHorizontalScroll2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowHorizontalScroll2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a horizontal scroll bar in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal scroll bar in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowHorizontalScroll1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowHorizontalScroll1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a horizontal scroll bar in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal scroll bar in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowHorizontalScroll3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowHorizontalScroll3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the horizontal scroll box (also known as the thumb) of a window.
This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the horizontal scroll box of a window.
Properties
Disabled
Disabled
Gets a visual style element that represents a horizontal scroll box in the disabled state.
Hot
Hot
Gets a visual style element that represents a horizontal scroll box in the hot state.
Normal
Normal
Gets a visual style element that represents a horizontal scroll box in the normal state.
Pressed
Pressed
Gets a visual style element that represents a horizontal scroll box in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a horizontal scroll box in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal scroll box in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowHorizontalThumb4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowHorizontalThumb4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a horizontal scroll box in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal scroll box in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowHorizontalThumb2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowHorizontalThumb2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a horizontal scroll box in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal scroll box in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowHorizontalThumb1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowHorizontalThumb1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents a horizontal scroll box in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a horizontal scroll box in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowHorizontalThumb3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowHorizontalThumb3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the Maximize button of a window. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the Maximize button of a window.
Properties
Disabled
Disabled
Gets a visual style element that represents a Maximize button in the disabled state.
Hot
Hot
Gets a visual style element that represents a Maximize button in the hot state.
Normal
Normal
Gets a visual style element that represents a Maximize button in the normal state.
Pressed
Pressed
Gets a visual style element that represents a Maximize button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Maximize button in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Maximize button in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMaxButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMaxButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a Maximize button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Maximize button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMaxButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMaxButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Maximize button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Maximize button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMaxButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMaxButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Maximize button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Maximize button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMaxButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMaxButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the title bar of a maximized window. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
of the title bar of a maximized window.
Properties
Active
Active
Gets a visual style element that represents the title bar of a maximized active window.
Disabled
Disabled
Gets a visual style element that represents the title bar of a maximized disabled window.
Inactive
Inactive
Gets a visual style element that represents the title bar of a maximized inactive window.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the title bar of a maximized active window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of a maximized active window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Active property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMaxCaption1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMaxCaption1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Active property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the title bar of a maximized disabled window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of a maximized disabled window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMaxCaption3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMaxCaption3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the title bar of a maximized inactive window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of a maximized inactive window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Inactive property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMaxCaption2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMaxCaption2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Inactive property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the Close button of a multiple-document interface (MDI) child
window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the Close button of an MDI child window.
Properties
Disabled
Disabled
Gets a visual style element that represents the Close button of a multiple-document interface (MDI) child window
in the disabled state.
Hot
Hot
Gets a visual style element that represents the Close button of a multiple-document interface (MDI) child window
in the hot state.
Normal
Normal
Gets a visual style element that represents the Close button of a multiple-document interface (MDI) child window
in the normal state.
Pressed
Pressed
Gets a visual style element that represents the Close button of a multiple-document interface (MDI) child window
in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the Close button of a multiple-document interface (MDI) child window in
the disabled state.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Close button of an MDI child window in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiCloseButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiCloseButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the Close button of a multiple-document interface (MDI) child window in
the hot state.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Close button of an MDI child window in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiCloseButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiCloseButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the Close button of a multiple-document interface (MDI) child window in
the normal state.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Close button of an MDI child window in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiCloseButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiCloseButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the Close button of a multiple-document interface (MDI) child window in
the pressed state.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Close button of an MDI child window in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiCloseButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiCloseButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the Help button of a multiple-document interface (MDI) child
window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the Help button of an MDI child window.
Properties
Disabled
Disabled
Gets a visual style element that represents the Help button of a multiple-document interface (MDI) child window
in the disabled state.
Hot
Hot
Gets a visual style element that represents the Help button of a multiple-document interface (MDI) child window
in the hot state.
Normal
Normal
Gets a visual style element that represents the Help button of a multiple-document interface (MDI) child window
in the normal state.
Pressed
Pressed
Gets a visual style element that represents the Help button of a multiple-document interface (MDI) child window
in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the Help button of a multiple-document interface (MDI) child window in
the disabled state.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Help button of an MDI child window in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiHelpButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiHelpButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the Help button of a multiple-document interface (MDI) child window in
the hot state.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Help button of an MDI child window in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiHelpButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiHelpButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the Help button of a multiple-document interface (MDI) child window in
the normal state.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Help button of an MDI child window in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiHelpButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiHelpButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the Help button of a multiple-document interface (MDI) child window in
the pressed state.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Help button of an MDI child window in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiHelpButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiHelpButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the Minimize button of a multiple-document interface (MDI)
child window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the Minimize button of an MDI child window.
Properties
Disabled
Disabled
Gets a visual style element that represents the Minimize button of a multiple-document interface (MDI) child
window in the disabled state.
Hot
Hot
Gets a visual style element that represents the Minimize button of a multiple-document interface (MDI) child
window in the hot state.
Normal
Normal
Gets a visual style element that represents the Minimize button of a multiple-document interface (MDI) child
window in the normal state.
Pressed
Pressed
Gets a visual style element that represents the Minimize button of a multiple-document interface (MDI) child
window in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the Minimize button of a multiple-document interface (MDI) child window
in the disabled state.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Minimize button of an MDI child window in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiMinButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiMinButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the Minimize button of a multiple-document interface (MDI) child window
in the hot state.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Minimize button of an MDI child window in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiMinButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiMinButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the Minimize button of a multiple-document interface (MDI) child window
in the normal state.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Minimize button of an MDI child window in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiMinButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiMinButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the Minimize button of a multiple-document interface (MDI) child window
in the pressed state.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Minimize button of an MDI child window in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiMinButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiMinButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides VisualStyleElement objects for each state of the Restore button of a multiple-document interface (MDI) child
window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the Restore button of an MDI child window.
Properties
Disabled
Disabled
Gets a visual style element that represents the Restore button of a multiple-document interface (MDI) child
window in the disabled state.
Hot
Hot
Gets a visual style element that represents the Restore button of a multiple-document interface (MDI) child
window in the hot state.
Normal
Normal
Gets a visual style element that represents the Restore button of a multiple-document interface (MDI) child
window in the normal state.
Pressed
Pressed
Gets a visual style element that represents the Restore button of a multiple-document interface (MDI) child
window in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the Restore button of a multiple-document interface (MDI) child window in
the disabled state.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Restore button of an MDI child window in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiRestoreButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiRestoreButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the Restore button of a multiple-document interface (MDI) child window in
the hot state.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Restore button of an MDI child window in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiRestoreButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiRestoreButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the Restore button of a multiple-document interface (MDI) child window in
the normal state.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Restore button of an MDI child window in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiRestoreButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiRestoreButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the Restore button of a multiple-document interface (MDI) child window in
the pressed state.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the Restore button of an MDI child window in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiRestoreButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiRestoreButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the System button of a multiple-document interface (MDI) child
window with visual styles. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a different state of
the System button of an MDI child window. This button opens the Window menu (also known as the System menu
or Control menu) when it is clicked.
Properties
Disabled
Disabled
Gets a visual style element that represents the System button of a multiple-document interface (MDI) child
window in the disabled state.
Hot
Hot
Gets a visual style element that represents the System button of a multiple-document interface (MDI) child
window in the hot state.
Normal
Normal
Gets a visual style element that represents the System button of a multiple-document interface (MDI) child
window in the normal state.
Pressed
Pressed
Gets a visual style element that represents the System button of a multiple-document interface (MDI) child
window in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the System button of a multiple-document interface (MDI) child window in
the disabled state.
public static [Link] Disabled { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the System button of an MDI child window in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiSysButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiSysButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the System button of a multiple-document interface (MDI) child window in
the hot state.
public static [Link] Hot { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the System button of an MDI child window in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiSysButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiSysButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the System button of a multiple-document interface (MDI) child window in
the normal state.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the System button of an MDI child window in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiSysButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiSysButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the System button of a multiple-document interface (MDI) child window in
the pressed state.
public static [Link] Pressed { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the System button of an MDI child window in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMdiSysButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMdiSysButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the Minimize button of a window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the Minimize button of a window.
Properties
Disabled
Disabled
Gets a visual style element that represents a Minimize button in the disabled state.
Hot
Hot
Gets a visual style element that represents a Minimize button in the hot state.
Normal
Normal
Gets a visual style element that represents a Minimize button in the normal state.
Pressed
Pressed
Gets a visual style element that represents a Minimize button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Minimize button in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Minimize button in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMinButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMinButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a Minimize button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Minimize button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMinButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMinButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Minimize button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Minimize button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMinButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMinButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Minimize button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Minimize button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMinButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMinButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the title bar of a minimized window. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the title bar of a minimized window.
Properties
Active
Active
Gets a visual style element that represents the title bar of a minimized active window.
Disabled
Disabled
Gets a visual style element that represents the title bar of a minimized disabled window.
Inactive
Inactive
Gets a visual style element that represents the title bar of a minimized inactive window.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the title bar of a minimized active window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of a minimized active window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Active property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMinCaption1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMinCaption1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Active property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the title bar of a minimized disabled window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of a minimized disabled window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMinCaption3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMinCaption3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the title bar of a minimized inactive window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of a minimized inactive window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Inactive property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowMinCaption2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowMinCaption2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Inactive property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the Restore button of a window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
of the Restore button of a window.
Properties
Disabled
Disabled
Gets a visual style element that represents a Restore button in the disabled state.
Hot
Hot
Gets a visual style element that represents a Restore button in the hot state.
Normal
Normal
Gets a visual style element that represents a Restore button in the normal state.
Pressed
Pressed
Gets a visual style element that represents a Restore button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a Restore button in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Restore button in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowRestoreButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowRestoreButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Restore button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Restore button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowRestoreButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowRestoreButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Restore button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Restore button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowRestoreButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowRestoreButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a Restore button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a Restore button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowRestoreButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowRestoreButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the title bar of a small window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
of the title bar of a small window, such as a tool window.
Properties
Active
Active
Gets a visual style element that represents the title bar of an active small window.
Disabled
Disabled
Gets a visual style element that represents the title bar of a disabled small window.
Inactive
Inactive
Gets a visual style element that represents the title bar of an inactive small window.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the title bar of an active small window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of an active small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Active property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallCaption1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallCaption1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Active property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the title bar of a disabled small window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of a disabled small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallCaption3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallCaption3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the title bar of an inactive small window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of an inactive small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Inactive property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallCaption2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallCaption2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Inactive property to create a VisualStyleRenderer.
[Link]
[Link]
Class
Provides a VisualStyleElement that represents the sizing template of the title bar of a small window. This class cannot
be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a
VisualStyleElement that represents the sizing template of the title bar of a small window, such as a tool window.
Properties
Normal
Normal
Gets a visual style element that represents the sizing template of the title bar of a small window.
See Also
VisualStyleElement VisualStyleElement
[Link].
Normal [Link]
[Link]
I n this Article
Gets a visual style element that represents the sizing template of the title bar of a small window.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the sizing template of the title bar of a small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallCaptionSizingTemplate1 method from the Paint event-handling method,
passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the Close button of a small window. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the Close button of a small window, such as a tool window.
Properties
Disabled
Disabled
Gets a visual style element that represents the small Close button in the disabled state.
Hot
Hot
Gets a visual style element that represents the small Close button in the hot state.
Normal
Normal
Gets a visual style element that represents the small Close button in the normal state.
Pressed
Pressed
Gets a visual style element that represents the small Close button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the small Close button in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the small Close button in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallCloseButton4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallCloseButton4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the small Close button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the small Close button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallCloseButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallCloseButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the small Close button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the small Close button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallCloseButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallCloseButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the small Close button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the small Close button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallCloseButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallCloseButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] Visual
[Link] Class
Provides VisualStyleElement objects for each state of the bottom border of a small window. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class gets a VisualStyleElement for a different
state of the bottom border of a small window, such as a tool window.
Properties
Active
Active
Gets a visual style element that represents the bottom border of an active small window.
Inactive
Inactive
Gets a visual style element that represents the bottom border of an inactive small window.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the bottom border of an active small window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the bottom border of an active small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Active property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallFrameBottom1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallFrameBottom1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Active property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the bottom border of an inactive small window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the bottom border of an inactive small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Inactive property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallFrameBottom1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallFrameBottom2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Inactive property to create a VisualStyleRenderer.
[Link]
Template [Link]
SizingTemplate Class
Provides a VisualStyleElement that represents the sizing template of the bottom border of a small window. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a
VisualStyleElement that represents the sizing template of the bottom border of a small window, such as a tool window.
Properties
Normal
Normal
Gets a visual style element that represents the sizing template of the bottom border of a small window.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link] [Link]
[Link]
I n this Article
Gets a visual style element that represents the sizing template of the bottom border of a small window.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the sizing template of the bottom border of a small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallFrameBottomSizingTemplate1 method from the Paint event-handling method,
passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the left border of a small window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the left border of a small window, such as a tool window.
Properties
Active
Active
Gets a visual style element that represents the left border of an active small window.
Inactive
Inactive
Gets a visual style element that represents the left border of an inactive small window.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents the left border of an active small window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the left border of an active small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Active property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallFrameLeft1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallFrameLeft1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Active property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the left border of an inactive small window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the left border of an inactive small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Inactive property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallFrameLeft2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallFrameLeft2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Inactive property to create a VisualStyleRenderer.
[Link]
Template [Link]
SizingTemplate Class
Provides a VisualStyleElement that represents the sizing template of the left border of a small window. This class
cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a
VisualStyleElement that represents the sizing template of the left border of a small window, such as a tool window.
Properties
Normal
Normal
Gets a visual style element that represents the sizing template of the left border of a small window.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link] [Link]
[Link]
I n this Article
Gets a visual style element that represents the sizing template of the left border of a small window.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the sizing template of the left border of a small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallFrameLeftSizingTemplate1 method from the Paint event-handling method,
passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the right border of a small window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the right border of a small window, such as a tool window.
Properties
Active
Active
Gets a visual style element that represents the right border of an active small window.
Inactive
Inactive
Gets a visual style element that represents the right border of an inactive small window.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the right border of an active small window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the right border of an active small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Active property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallFrameRight1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallFrameRight1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Active property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the right border of an inactive small window.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the right border of an inactive small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Inactive property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallFrameRight2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallFrameRight2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Inactive property to create a VisualStyleRenderer.
[Link]
Template [Link]
SizingTemplate Class
Provides a VisualStyleElement for the sizing template of the right border of a small window. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
The Normal property of the [Link] class returns a
VisualStyleElement that represents the sizing template of the right border of a small window, such as a tool window.
Properties
Normal
Normal
Gets a visual style element that represents the sizing template of the right border of a small window.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link] [Link]
[Link]
I n this Article
Gets a visual style element that represents the sizing template of the right border of a small window.
public static [Link] Normal { get; }
member [Link] : [Link]
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the sizing template of the right border of a small window.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallFrameRightSizingTemplate1 method from the Paint event-handling method,
passing e as PaintEventArgs.
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the title bar of a maximized small window. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the title bar of a maximized small window, such as a tool window.
Properties
Active
Active
Gets a visual style element that represents the title bar of an active small window that is maximized.
Disabled
Disabled
Gets a visual style element that represents the title bar of a disabled small window that is maximized.
Inactive
Inactive
Gets a visual style element that represents the title bar of an inactive small window that is maximized.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the title bar of an active small window that is maximized.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of an active small window that is maximized.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Active property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallMaxCaption1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallMaxCaption1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Active property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the title bar of a disabled small window that is maximized.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of a disabled small window that is maximized.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallMaxCaption3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallMaxCaption3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the title bar of an inactive small window that is maximized.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of an inactive small window that is maximized.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Inactive property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallMaxCaption2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallMaxCaption2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Inactive property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the title bar of a minimized small window. This class cannot be
inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different
state of the title bar of a minimized small window, such as a tool window.
Properties
Active
Active
Gets a visual style element that represents the title bar of an active small window that is minimized.
Disabled
Disabled
Gets a visual style element that represents the title bar of a disabled small window that is minimized.
Inactive
Inactive
Gets a visual style element that represents the title bar of an inactive small window that is minimized.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents the title bar of an active small window that is minimized.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of an active small window that is minimized.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Active property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallMinCaption1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallMinCaption1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Active property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the title bar of a disabled small window that is minimized.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of a disabled small window that is minimized.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallMinCaption3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallMinCaption3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link]
[Link]
I n this Article
Gets a visual style element that represents the title bar of an inactive small window that is minimized.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents the title bar of an inactive small window that is minimized.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Inactive property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSmallMinCaption2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSmallMinCaption2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Inactive property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the System button of a window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state of
the System button. This button opens the Window menu (also known as the System menu or Control menu) when it
is clicked.
Properties
Disabled
Disabled
Gets a visual style element that represents a System button in the disabled state.
Hot
Hot
Gets a visual style element that represents a System button in the hot state.
Normal
Normal
Gets a visual style element that represents a System button in the normal state.
Pressed
Pressed
Gets a visual style element that represents a System button in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a System button in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a System button in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElement_Button_PushButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElement_Button_PushButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a System button in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a System button in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSysButton2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSysButton2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a System button in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a System button in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSysButton1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSysButton1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a System button in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a System button in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowSysButton3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowSysButton3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the vertical scroll bar of a window. This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
of the vertical scroll bar of a window.
Properties
Disabled
Disabled
Gets a visual style element that represents a vertical scroll bar in the disabled state.
Hot
Hot
Gets a visual style element that represents a vertical scroll bar in the hot state.
Normal
Normal
Gets a visual style element that represents a vertical scroll bar in the normal state.
Pressed
Pressed
Gets a visual style element that represents a vertical scroll bar in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a vertical scroll bar in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical scroll bar in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowVerticalScroll4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowVerticalScroll4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link]
I n this Article
Gets a visual style element that represents a vertical scroll bar in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical scroll bar in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowVerticalScroll2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowVerticalScroll2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a vertical scroll bar in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical scroll bar in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowVerticalScroll1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowVerticalScroll1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a vertical scroll bar in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical scroll bar in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowVerticalScroll3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowVerticalScroll3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
[Link] VisualStyle
[Link] Class
Provides VisualStyleElement objects for each state of the vertical scroll box (also known as the thumb) of a window.
This class cannot be inherited.
D eclaration
public static class [Link]
type [Link] = class
I nheritance H ierarchy
Object Object
Remarks
Each property of the [Link] class returns a VisualStyleElement for a different state
of the vertical scroll box of a window.
Properties
Disabled
Disabled
Gets a visual style element that represents a vertical scroll box in the disabled state.
Hot
Hot
Gets a visual style element that represents a vertical scroll box in the hot state.
Normal
Normal
Gets a visual style element that represents a vertical scroll box in the normal state.
Pressed
Pressed
Gets a visual style element that represents a vertical scroll box in the pressed state.
See Also
VisualStyleElement VisualStyleElement
[Link]
[Link]
I n this Article
Gets a visual style element that represents a vertical scroll box in the disabled state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical scroll box in the disabled state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Disabled property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowVerticalThumb4 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowVerticalThumb4(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Disabled property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a vertical scroll box in the hot state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical scroll box in the hot state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Hot property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowVerticalThumb2 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowVerticalThumb2(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Hot property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a vertical scroll box in the normal state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical scroll box in the normal state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Normal property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowVerticalThumb1 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowVerticalThumb1(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Normal property to create a VisualStyleRenderer.
[Link] Visual
[Link]
I n this Article
Gets a visual style element that represents a vertical scroll box in the pressed state.
Returns
VisualStyleElement VisualStyleElement
A VisualStyleElement that represents a vertical scroll box in the pressed state.
Examples
The following code example demonstrates how to create a VisualStyleRenderer with the VisualStyleElement returned
by the Pressed property. To run this example, paste it into a Windows Form. Handle the form's Paint event and call the
DrawVisualStyleElementWindowVerticalThumb3 method from the Paint event-handling method, passing e as
PaintEventArgs.
public void DrawVisualStyleElementWindowVerticalThumb3(PaintEventArgs e)
{
if ([Link](
[Link]))
{
VisualStyleRenderer renderer =
new VisualStyleRenderer([Link]);
Rectangle rectangle1 = new Rectangle(10, 50, 50, 50);
[Link]([Link], rectangle1);
[Link]("[Link]",
[Link], [Link], new Point(10, 10));
}
else
[Link]("This element is not defined in the current visual style.",
[Link], [Link], new Point(10, 10));
}
Remarks
You can use the VisualStyleElement returned by the Pressed property to create a VisualStyleRenderer.
VisualStyleInformation VisualStyleInformation Class
Provides information about the current visual style of the operating system.
D eclaration
public static class VisualStyleInformation
type VisualStyleInformation = class
I nheritance H ierarchy
Object Object
Remarks
This class exposes static properties that provide details about the current visual style of the operating system.
Properties
Author
Author
ColorScheme
ColorScheme
Company
Company
ControlHighlightHot
ControlHighlightHot
Gets the color that the current visual style uses to indicate the hot state of a control.
Copyright
Copyright
Description
Description
IsEnabledByUser
IsEnabledByUser
Gets a value indicating whether the user has enabled visual styles in the operating system.
IsSupportedByOS
IsSupportedByOS
Gets a value indicating whether the operating system supports visual styles.
MinimumColorDepth
MinimumColorDepth
Gets the minimum color depth for the current visual style.
Size
Size
Gets a string that describes the size of the current visual style.
SupportsFlatMenus
SupportsFlatMenus
Gets a value indicating whether the current visual style supports flat menus.
TextControlBorder
TextControlBorder
Gets the color that the current visual style uses to paint the borders of controls that contain text.
Url
Url
Version
Version
Returns
String String
A string that specifies the author of the current visual style if visual styles are enabled; otherwise, an empty string ("").
Remarks
This property checks the value of the IsEnabledByUser property internally.
[Link] VisualStyle
[Link]
I n this Article
Gets the color scheme of the current visual style.
Returns
String String
A string that specifies the color scheme of the current visual style if visual styles are enabled; otherwise, an empty
string ("").
Remarks
The Windows XP visual style provides three color schemes. This property returns "NormalColor" if the blue color
scheme is active, "HomeStead" if the olive green color scheme is active, and "Metallic" if the silver color scheme is
active.
[Link] VisualStyleInformation.
Company
I n this Article
Gets the company that created the current visual style.
Returns
String String
A string that specifies the company that created the current visual style if visual styles are enabled; otherwise, an empty
string ("").
Remarks
This property checks the value of the IsEnabledByUser property internally.
[Link] VisualStyle
[Link]
I n this Article
Gets the color that the current visual style uses to indicate the hot state of a control.
Returns
Color Color
If visual styles are enabled, the Color used to paint a highlight on a control in the hot state; otherwise, ButtonHighlight.
Remarks
This property checks the values of the IsEnabledByUser and [Link] properties internally.
[Link] VisualStyleInformation.
Copyright
I n this Article
Gets the copyright of the current visual style.
Returns
String String
A string that specifies the copyright of the current visual style if visual styles are enabled; otherwise, an empty string
("").
Remarks
This property checks the value of the IsEnabledByUser property internally.
[Link] VisualStyle
[Link]
I n this Article
Gets a description of the current visual style.
Returns
String String
A string that describes the current visual style if visual styles are enabled; otherwise, an empty string ("").
Remarks
This property checks the value of the IsEnabledByUser property internally.
[Link] VisualStyle
[Link]
I n this Article
Gets the display name of the current visual style.
Returns
String String
A string that specifies the display name of the current visual style if visual styles are enabled; otherwise, an empty
string ("").
Remarks
This property checks the value of the IsEnabledByUser property internally.
[Link] VisualStyle
[Link]
I n this Article
Gets a value indicating whether the user has enabled visual styles in the operating system.
Returns
Boolean Boolean
true if the user has enabled visual styles in an operating system that supports them; otherwise, false .
Remarks
Users can enable visual styles in the Appearance tab of the Display option in Control Panel. This property checks the
value of the IsSupportedByOS property internally.
[Link] VisualStyle
[Link]
I n this Article
Gets a value indicating whether the operating system supports visual styles.
Returns
Boolean Boolean
true if the operating system supports visual styles; otherwise, false .
Remarks
Visual styles are supported only on Windows XP Home Edition, Windows XP Professional, and Windows Server 2003.
[Link] VisualStyle
[Link]
I n this Article
Gets the minimum color depth for the current visual style.
Returns
Int32 Int32
The minimum color depth for the current visual style if visual styles are enabled; otherwise, 0.
Remarks
This property checks the values of the IsEnabledByUser and [Link] properties internally.
[Link] [Link]
I n this Article
Gets a string that describes the size of the current visual style.
public static string Size { get; }
member [Link] : string
Returns
String String
A string that describes the size of the current visual style if visual styles are enabled; otherwise, an empty string ("").
Remarks
This property returns "NormalSize", "LargeFonts" or "ExtraLargeFonts". This property checks the value of the
IsEnabledByUser property internally.
[Link] VisualStyle
[Link]
I n this Article
Gets a value indicating whether the current visual style supports flat menus.
Returns
Boolean Boolean
true if visual styles are enabled and the current visual style supports flat menus; otherwise, false .
Remarks
This property checks the values of the IsEnabledByUser and [Link] properties internally.
[Link] VisualStyle
[Link]
I n this Article
Gets the color that the current visual style uses to paint the borders of controls that contain text.
Returns
Color Color
If visual styles are enabled, the Color that the current visual style uses to paint the borders of controls that contain text;
otherwise, ControlDarkDark.
Remarks
This property specifies the border color of controls such as TextBox and ComboBox. This property checks the values of
the IsEnabledByUser and [Link] properties internally.
[Link] [Link]
I n this Article
Gets a URL provided by the author of the current visual style.
public static string Url { get; }
member [Link] : string
Returns
String String
A string that specifies a URL provided by the author of the current visual style if visual styles are enabled; otherwise, an
empty string ("").
Remarks
This property checks the value of the IsEnabledByUser property internally.
[Link] VisualStyleInformation.
Version
I n this Article
Gets the version of the current visual style.
Returns
String String
A string that indicates the version of the current visual style if visual styles are enabled; otherwise, an empty string ("").
Remarks
This property checks the value of the IsEnabledByUser property internally.
VisualStyleRenderer VisualStyleRenderer Class
Provides methods for drawing and getting information about a VisualStyleElement. This class cannot be inherited.
D eclaration
public sealed class VisualStyleRenderer
type VisualStyleRenderer = class
I nheritance H ierarchy
Object Object
Remarks
The [Link] namespace exposes VisualStyleElement objects that represent all of the
controls and user interface (UI) elements that are supported by visual styles. To draw or get information about a
particular element, you must set a VisualStyleRenderer to the element you are interested in. A VisualStyleRenderer is
automatically set to a specified VisualStyleElement in the VisualStyleRenderer constructor, but you can also set an
existing VisualStyleRenderer to a different element by calling the SetParameters method.
To draw an element, use the DrawBackground method. The VisualStyleRenderer class also includes methods, such as
GetColor and GetEnumValue, that provide information about how an element is defined by the current visual style.
The VisualStyleRenderer constructor and many of the VisualStyleRenderer methods throw exceptions unless visual
styles are enabled in the operating system and visual styles are applied to the client area of application windows. To
check for these conditions, use the static IsSupported property.
The VisualStyleRenderer class wraps the functionality of the visual styles (UxTheme) API from the Windows Shell
portion of the Windows Platform SDK.
Constructors
VisualStyleRenderer(VisualStyleElement)
VisualStyleRenderer(VisualStyleElement)
Initializes a new instance of the VisualStyleRenderer class using the given VisualStyleElement.
Initializes a new instance of the VisualStyleRenderer class using the given class, part, and state values.
Properties
Class
Class
Handle
Handle
Gets a unique identifier for the current class of visual style elements.
IsSupported
IsSupported
Gets a value specifying whether the operating system is using visual styles to draw controls.
LastHResult
LastHResult
Gets the last error code returned by the native visual styles (UxTheme) API methods encapsulated by the
VisualStyleRenderer class.
Part
Part
State
State
Methods
DrawBackground(IDeviceContext, Rectangle)
DrawBackground(IDeviceContext, Rectangle)
Draws the background image of the current visual style element within the specified bounding rectangle.
Draws the background image of the current visual style element within the specified bounding rectangle and
clipped to the specified clipping rectangle.
Draws the image from the specified ImageList within the specified bounds.
Draws text in the specified bounding rectangle with the option of displaying disabled text and applying other text
formatting.
Draws text in the specified bounds with the option of displaying disabled text.
GetBackgroundContentRectangle(IDeviceContext, Rectangle)
GetBackgroundContentRectangle(IDeviceContext, Rectangle)
Returns the content area for the background of the current visual style element.
GetBackgroundExtent(IDeviceContext, Rectangle)
GetBackgroundExtent(IDeviceContext, Rectangle)
Returns the entire background area for the current visual style element.
GetBackgroundRegion(IDeviceContext, Rectangle)
GetBackgroundRegion(IDeviceContext, Rectangle)
Returns the region for the background of the current visual style element.
GetBoolean(BooleanProperty)
GetBoolean(BooleanProperty)
Returns the value of the specified Boolean property for the current visual style element.
GetColor(ColorProperty)
GetColor(ColorProperty)
Returns the value of the specified color property for the current visual style element.
GetEnumValue(EnumProperty)
GetEnumValue(EnumProperty)
Returns the value of the specified enumerated type property for the current visual style element.
GetFilename(FilenameProperty)
GetFilename(FilenameProperty)
Returns the value of the specified file name property for the current visual style element.
GetFont(IDeviceContext, FontProperty)
GetFont(IDeviceContext, FontProperty)
Returns the value of the specified font property for the current visual style element.
GetInteger(IntegerProperty)
GetInteger(IntegerProperty)
Returns the value of the specified integer property for the current visual style element.
GetMargins(IDeviceContext, MarginProperty)
GetMargins(IDeviceContext, MarginProperty)
Returns the value of the specified margins property for the current visual style element.
GetPartSize(IDeviceContext, ThemeSizeType)
GetPartSize(IDeviceContext, ThemeSizeType)
Returns the value of the specified size property of the current visual style part.
Returns the value of the specified size property of the current visual style part using the specified drawing bounds.
GetPoint(PointProperty)
GetPoint(PointProperty)
Returns the value of the specified point property for the current visual style element.
GetString(StringProperty)
GetString(StringProperty)
Returns the value of the specified string property for the current visual style element.
Returns the size and location of the specified string when drawn with the font of the current visual style element.
Returns the size and location of the specified string when drawn with the font of the current visual style element
within the specified initial bounding rectangle.
GetTextMetrics(IDeviceContext)
GetTextMetrics(IDeviceContext)
Retrieves information about the font specified by the current visual style element.
Returns a hit test code indicating whether the point is contained in the background of the current visual style
element and within the specified region.
Returns a hit test code indicating whether a point is contained in the background of the current visual style
element.
Returns a hit test code indicating whether the point is contained in the background of the current visual style
element and within the specified bounds.
IsBackgroundPartiallyTransparent()
IsBackgroundPartiallyTransparent()
Indicates whether the background of the current visual style element has any semitransparent or alpha-blended
pieces.
IsElementDefined(VisualStyleElement)
IsElementDefined(VisualStyleElement)
Determines whether the specified visual style element is defined by the current visual style.
Sets this VisualStyleRenderer to the visual style element represented by the specified class, part, and state values.
SetParameters(VisualStyleElement)
SetParameters(VisualStyleElement)
Sets this VisualStyleRenderer to the visual style element represented by the specified VisualStyleElement.
See Also
VisualStyleElement VisualStyleElement
[Link] [Link]
I n this Article
Gets the class name of the current visual style element.
public string Class { get; }
member [Link] : string
Returns
String String
A string that identifies the class of the current visual style element.
Remarks
This property identifies a group of related controls or user interface (UI) elements. For more information about the
class, part, and state of a visual style element, see the VisualStyleElement class.
[Link] VisualStyle
[Link]
I n this Article
Overloads
DrawBackground(IDeviceContext, Rectangle) Draw
Background(IDeviceContext, Rectangle) Draws the background image of the current visual style
element within the specified bounding rectangle.
DrawBackground(IDeviceContext, Rectangle)
DrawBackground(IDeviceContext, Rectangle)
Draws the background image of the current visual style element within the specified bounding rectangle.
public void DrawBackground ([Link] dc, [Link] bounds);
member [Link] : [Link] * [Link] -> unit
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext used to draw the background image.
bounds Rectangle Rectangle
A Rectangle in which the background image is drawn.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
Examples
The following code example demonstrates how to use the DrawBackground(IDeviceContext, Rectangle) method to a
draw a VisualStyleElement within a custom control's OnPaint method. This code example is part of a larger example
provided for the VisualStyleRenderer class overview.
protected override void OnPaint(PaintEventArgs e)
{
[Link](e);
Remarks
This method draws the background of the current visual style element specified by the Class, Part, and State properties.
If the Width or Height of the rectangle specified by the bounds parameter is less than 0, the DrawBackground method
will return without drawing the background.
The background of a visual style element can be a bitmap file or a filled border. To determine the background type, call
the GetEnumValue method with an argument value of [Link]. To determine whether the
element background will scale to fit the specified bounds, call the GetEnumValue method with an argument value of
[Link].
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext used to draw the background image.
bounds Rectangle Rectangle
A Rectangle in which the background image is drawn.
clipRectangle Rectangle Rectangle
A Rectangle that defines a clipping rectangle for the drawing operation.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
Remarks
This method draws the background of the current visual style element specified by the Class, Part, and State properties.
The background will be clipped to the area specified by the clipRectangle parameter.
If the Width or Height of the rectangle specified by either the bounds or clipRectangle parameters is less than 0, the
DrawBackground method will return without drawing the background.
The background of a visual style element can be a bitmap file or a filled border. To determine the background type, call
the GetEnumValue method with an argument value of [Link]. To determine whether the
element background will scale to fit the specified bounds, call the GetEnumValue method with an argument value of
[Link].
[Link] [Link]
Edge
I n this Article
Draws one or more edges of the specified bounding rectangle.
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext used to draw the edges.
bounds Rectangle Rectangle
The Rectangle whose bounds define the edges to draw.
edges Edges Edges
A bitwise combination of the Edges values.
style EdgeStyle EdgeStyle
A bitwise combination of the EdgeStyle values.
effects EdgeEffects EdgeEffects
A bitwise combination of the EdgeEffects values.
Returns
Rectangle Rectangle
A Rectangle that represents the interior of the bounds parameter, minus the edges that were drawn.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
[Link] VisualStyleRenderer.
DrawImage
I n this Article
Overloads
DrawImage(Graphics, Rectangle, Image) DrawImage(Graphics,
Rectangle, Image) Draws the specified image within the specified bounds.
Parameters
g Graphics Graphics
The Graphics used to draw the image.
bounds Rectangle Rectangle
A Rectangle in which the image is drawn.
image Image Image
The Image to draw.
Exceptions
ArgumentNullException ArgumentNullException
g or image is null .
Remarks
If the visual style applies one of the effects specified by the [Link] values to
the current element, this method will apply the effect to the drawn image.
Parameters
g Graphics Graphics
The Graphics used to draw the image.
bounds Rectangle Rectangle
A Rectangle in which the image is drawn.
imageList ImageList ImageList
An ImageList that contains the Image to draw.
imageIndex Int32 Int32
The index of the Image within imageList to draw.
Exceptions
ArgumentNullException ArgumentNullException
g or image is null .
ArgumentOutOfRangeException ArgumentOutOfRangeException
imageIndex is less than 0, or greater than or equal to the number of images in imageList .
Remarks
If the visual style applies one of the effects specified by the [Link] values to
the current element, this method will apply the effect to the drawn image.
[Link] VisualStyle
[Link]
I n this Article
Draws the background of a control's parent in the specified area.
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext used to draw the background of the parent of childControl . This object typically belongs to the
child control.
bounds Rectangle Rectangle
A Rectangle in which to draw the parent control's background. This rectangle should be inside the child control's
bounds.
childControl Control Control
The control whose parent's background will be drawn.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
[Link] [Link]
Text
I n this Article
Overloads
DrawText(IDeviceContext, Rectangle, String, Boolean, Text
FormatFlags) DrawText(IDeviceContext, Rectangle, String, Draws text in the specified bounding rectangle with the option
Boolean, TextFormatFlags) of displaying disabled text and applying other text formatting.
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext used to draw the text.
bounds Rectangle Rectangle
A Rectangle in which to draw the text.
textToDraw String String
The text to draw.
drawDisabled Boolean Boolean
true to draw grayed-out text; otherwise, false .
flags TextFormatFlags TextFormatFlags
A bitwise combination of the TextFormatFlags values.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext used to draw the text.
bounds Rectangle Rectangle
A Rectangle in which to draw the text.
textToDraw String String
The text to draw.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext used to draw the text.
bounds Rectangle Rectangle
A Rectangle in which to draw the text.
textToDraw String String
The text to draw.
drawDisabled Boolean Boolean
true to draw grayed-out text; otherwise, false .
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
[Link]
[Link]
I n this Article
Returns the content area for the background of the current visual style element.
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext this operation will use.
bounds Rectangle Rectangle
A Rectangle that contains the entire background area of the current visual style element.
Returns
Rectangle Rectangle
A Rectangle that contains the content area for the background of the current visual style element.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
Remarks
A visual style can define a content area within each background image. This is the area in which content such as text
and icons can be placed without overwriting background borders. This method uses the given background area to
calculate the content area for the current visual style element.
[Link] VisualStyle
[Link]
I n this Article
Returns the entire background area for the current visual style element.
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext this operation will use.
contentBounds Rectangle Rectangle
A Rectangle that contains the content area of the current visual style element.
Returns
Rectangle Rectangle
A Rectangle that contains the entire background area of the current visual style element.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
Remarks
A visual style can define a content area within each background image. This is the area in which content such as text
and icons can be placed without overwriting background borders. This method uses the given content area to calculate
the entire background area for the current visual style element.
[Link] VisualStyle
[Link]
I n this Article
Returns the region for the background of the current visual style element.
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext this operation will use.
bounds Rectangle Rectangle
A Rectangle that contains the entire background area of the current visual style element.
Returns
Region Region
The Region that contains the background of the current visual style element.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
Examples
The following code example demonstrates how to use the GetBackgroundRegion method in a custom control. This
example uses GetBackgroundRegion to get the Region of the window title bar element returned by the
[Link] property. This Region is used to set the [Link] property of the
control, so that the window title bar will appear with the rounded corners defined by the standard Windows XP visual
style. This code example is part of a larger example provided for the VisualStyleRenderer class overview.
// Calculate and set the clipping region for the control
// so that the corners of the title bar are rounded.
private void SetClipRegion()
{
if (![Link])
{
return;
}
Remarks
This method can be used to get the Region of a visual style element that has partially transparent or alpha-blended
parts in its background.
[Link] [Link]
Boolean
I n this Article
Returns the value of the specified Boolean property for the current visual style element.
Parameters
prop BooleanProperty BooleanProperty
One of the BooleanProperty values that specifies which property value to retrieve for the current visual style element.
Returns
Boolean Boolean
true if the property specified by the prop parameter is true for the current visual style element; otherwise, false .
Exceptions
InvalidEnumArgumentException InvalidEnumArgumentException
prop is not one of the BooleanProperty values.
Remarks
Visual styles use a set of Boolean values to describe some properties of the elements defined by a style. These
properties are encapsulated by the BooleanProperty values.
[Link] [Link]
Color
I n this Article
Returns the value of the specified color property for the current visual style element.
Parameters
prop ColorProperty ColorProperty
One of the ColorProperty values that specifies which property value to retrieve for the current visual style element.
Returns
Color Color
A Color that contains the value of the property specified by the prop parameter for the current visual style element.
Exceptions
InvalidEnumArgumentException InvalidEnumArgumentException
prop is not one of the ColorProperty values.
Remarks
Visual styles use a set of color values to describe some properties of the elements defined by a style. These properties
are encapsulated by the ColorProperty values.
[Link] VisualStyleRenderer.
GetEnumValue
I n this Article
Returns the value of the specified enumerated type property for the current visual style element.
Parameters
prop EnumProperty EnumProperty
One of the EnumProperty values that specifies which property value to retrieve for the current visual style element.
Returns
Int32 Int32
The integer value of the property specified by the prop parameter for the current visual style element.
Exceptions
InvalidEnumArgumentException InvalidEnumArgumentException
prop is not one of the EnumProperty values.
Remarks
Visual styles use a set of enumerated types to describe some properties of the elements defined by a style. These
enumerated types are encapsulated by the EnumProperty values.
[Link] [Link]
Filename
I n this Article
Returns the value of the specified file name property for the current visual style element.
Parameters
prop FilenameProperty FilenameProperty
One of the FilenameProperty values that specifies which property value to retrieve for the current visual style element.
Returns
String String
A String that contains the value of the property specified by the prop parameter for the current visual style element.
Exceptions
InvalidEnumArgumentException InvalidEnumArgumentException
prop is not one of the FilenameProperty values.
Remarks
Visual styles can specify the names of image files that are used to draw a particular element in different sizes and
resolutions. These file names are encapsulated by the FilenameProperty values.
[Link] [Link]
I n this Article
Returns the value of the specified font property for the current visual style element.
public [Link] GetFont ([Link] dc,
[Link] prop);
member [Link] : [Link] * [Link]
-> [Link]
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext this operation will use.
prop FontProperty FontProperty
One of the FontProperty values that specifies which property value to retrieve for the current visual style element.
Returns
Font Font
A Font that contains the value of the property specified by the prop parameter for the current visual style element.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
InvalidEnumArgumentException InvalidEnumArgumentException
prop is not one of the FontProperty values.
Remarks
Visual styles use a set of font values to describe some properties of the elements defined by a style. These properties
are encapsulated by the FontProperty values.
[Link] [Link]
Integer
I n this Article
Returns the value of the specified integer property for the current visual style element.
Parameters
prop IntegerProperty IntegerProperty
One of the IntegerProperty values that specifies which property value to retrieve for the current visual style element.
Returns
Int32 Int32
The integer value of the property specified by the prop parameter for the current visual style element.
Exceptions
InvalidEnumArgumentException InvalidEnumArgumentException
prop is not one of the IntegerProperty values.
Remarks
Visual styles use a set of integer values to describe some properties of the elements defined by a style. These
properties are encapsulated by the IntegerProperty values.
[Link] [Link]
Margins
I n this Article
Returns the value of the specified margins property for the current visual style element.
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext this operation will use.
prop MarginProperty MarginProperty
One of the MarginProperty values that specifies which property value to retrieve for the current visual style element.
Returns
Padding Padding
A Padding that contains the value of the property specified by the prop parameter for the current visual style element.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
InvalidEnumArgumentException InvalidEnumArgumentException
prop is not one of the MarginProperty values.
Remarks
Visual styles use a set of margin values to describe some properties of the elements defined by a style. These
properties are encapsulated by the MarginProperty values.
[Link] [Link]
PartSize
I n this Article
Overloads
GetPartSize(IDeviceContext, ThemeSizeType) GetPartSize(
IDeviceContext, ThemeSizeType) Returns the value of the specified size property of the current
visual style part.
GetPartSize(IDeviceContext, ThemeSizeType)
GetPartSize(IDeviceContext, ThemeSizeType)
Returns the value of the specified size property of the current visual style part.
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext this operation will use.
type ThemeSizeType ThemeSizeType
One of the ThemeSizeType values that specifies which size value to retrieve for the part.
Returns
Size Size
A Size that contains the size specified by the type parameter for the current visual style part.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
InvalidEnumArgumentException InvalidEnumArgumentException
prop is not one of the ThemeSizeType values.
Examples
The following code example demonstrates how to use the GetPartSize(IDeviceContext, ThemeSizeType) method in a
custom control to get the sizes of a window title bar, Close button, borders, and sizing handle specified by the visual
style. These sizes are used to calculate the sizes of the Rectangle objects used to draw the VisualStyleElement objects
that represent these window parts. This code example is part of a larger example provided for the VisualStyleRenderer
class overview.
// Get the sizes and offsets for the window parts as specified
// by the visual style.
private void GetPartDetails()
{
// Do nothing further if visual styles are not enabled.
if (![Link])
{
return;
}
Remarks
Typically, only the True and Minimum values should be used for the type parameter of this method.
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext this operation will use.
bounds Rectangle Rectangle
A Rectangle that contains the area in which the part will be drawn.
type ThemeSizeType ThemeSizeType
One of the ThemeSizeType values that specifies which size value to retrieve for the part.
Returns
Size Size
A Size that contains the size specified by the type parameter for the current visual style part.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
InvalidEnumArgumentException InvalidEnumArgumentException
prop is not one of the ThemeSizeType values.
[Link] [Link]
Point
I n this Article
Returns the value of the specified point property for the current visual style element.
Parameters
prop PointProperty PointProperty
One of the PointProperty values that specifies which property value to retrieve for the current visual style element.
Returns
Point Point
A Point that contains the value of the property specified by the prop parameter for the current visual style element.
Exceptions
InvalidEnumArgumentException InvalidEnumArgumentException
prop is not one of the PointProperty values.
Examples
The following code example demonstrates how to use the GetPoint method in a custom control to get the offset of the
window Close button in relation to the upper-right corner of the title bar. This code example is part of a larger example
provided for the VisualStyleRenderer class overview.
// Get the sizes and offsets for the window parts as specified
// by the visual style.
private void GetPartDetails()
{
// Do nothing further if visual styles are not enabled.
if (![Link])
{
return;
}
Remarks
Visual styles use a set of point values to describe some properties of the elements defined by a style. These properties
are encapsulated by the PointProperty values.
[Link] [Link]
String
I n this Article
Returns the value of the specified string property for the current visual style element.
Parameters
prop StringProperty StringProperty
One of the StringProperty values that specifies which property value to retrieve for the current visual style element.
Returns
String String
A String that contains the value of the property specified by the prop parameter for the current visual style element.
Exceptions
InvalidEnumArgumentException InvalidEnumArgumentException
prop is not one of the StringProperty values.
Remarks
Visual styles use a set of string values to describe some properties of the elements defined by a style. These properties
are encapsulated by the StringProperty values.
[Link] VisualStyleRenderer.
GetTextExtent
I n this Article
Overloads
GetTextExtent(IDeviceContext, String, TextFormatFlags) GetText
Extent(IDeviceContext, String, TextFormatFlags) Returns the size and location of the specified string when
drawn with the font of the current visual style element.
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext this operation will use.
textToDraw String String
The string to measure.
flags TextFormatFlags TextFormatFlags
A bitwise combination of the TextFormatFlags values.
Returns
Rectangle Rectangle
A Rectangle that contains the area required to fit the rendered text.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext this operation will use.
bounds Rectangle Rectangle
A Rectangle used to control the flow and wrapping of the text.
textToDraw String String
The string to measure.
flags TextFormatFlags TextFormatFlags
A bitwise combination of the TextFormatFlags values.
Returns
Rectangle Rectangle
A Rectangle that contains the area required to fit the rendered text.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
[Link] VisualStyleRenderer.
GetTextMetrics
I n this Article
Retrieves information about the font specified by the current visual style element.
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext this operation will use.
Returns
TextMetrics TextMetrics
A TextMetrics that provides information about the font specified by the current visual style element.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
[Link] [Link]
I n this Article
Gets a unique identifier for the current class of visual style elements.
public IntPtr Handle { get; }
member [Link] : nativeint
Returns
IntPtr IntPtr
An IntPtr that identifies a set of data that defines the class of elements specified by Class.
Exceptions
InvalidOperationException InvalidOperationException
The operating system does not support visual styles.
-or-
Visual styles are disabled by the user in the operating system.
-or-
Visual styles are not applied to the client area of application windows.
Remarks
This property is used internally by the VisualStyleRenderer methods. If the class of elements specified by the Class
property is not defined by the current visual style, then this property returns [Link].
This property value is invalidated when the visual style of the operating system changes, or when the user disables
visual styles. If you access this property directly, your code should query this property again to get a new handle when
the [Link] event is raised with the [Link]
property value of [Link].
[Link] VisualStyle
[Link]
I n this Article
Overloads
HitTestBackground(IDeviceContext, Rectangle, IntPtr, Point, Hit
TestOptions) HitTestBackground(IDeviceContext, Rectangle, Int Returns a hit test code indicating whether the point is
Ptr, Point, HitTestOptions) contained in the background of the current visual style
element and within the specified region.
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext this operation will use.
backgroundRectangle Rectangle Rectangle
A Rectangle that contains the background of the current visual style element.
hRgn IntPtr IntPtr
A Windows handle to a Region that specifies the bounds of the hit test area within the background.
pt Point Point
The Point to test.
options HitTestOptions HitTestOptions
A bitwise combination of the HitTestOptions values.
Returns
HitTestCode HitTestCode
A HitTestCode that describes where pt is located in the background of the current visual style element.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
Parameters
dc IDeviceContext IDeviceContext
The IDeviceContext this operation will use.
backgroundRectangle Rectangle Rectangle
A Rectangle that contains the background of the current visual style element.
pt Point Point
The Point to test.
options HitTestOptions HitTestOptions
A bitwise combination of the HitTestOptions values.
Returns
HitTestCode HitTestCode
A HitTestCode that describes where pt is located in the background of the current visual style element.
Exceptions
ArgumentNullException ArgumentNullException
dc is null .
Parameters
g Graphics Graphics
The Graphics this operation will use.
backgroundRectangle Rectangle Rectangle
A Rectangle that contains the background of the current visual style element.
region Region Region
A Region that specifies the bounds of the hit test area within the background.
pt Point Point
The Point to test.
options HitTestOptions HitTestOptions
A bitwise combination of the HitTestOptions values.
Returns
HitTestCode HitTestCode
A HitTestCode that describes where pt is located in the background of the current visual style element, if at all.
Exceptions
ArgumentNullException ArgumentNullException
g is null .
[Link]
[Link]
I n this Article
Indicates whether the background of the current visual style element has any semitransparent or alpha-blended pieces.
Returns
Boolean Boolean
true if the background of the current visual style element has any semitransparent or alpha-blended pieces;
otherwise, false .
[Link] VisualStyle
[Link]
I n this Article
Determines whether the specified visual style element is defined by the current visual style.
Parameters
element VisualStyleElement VisualStyleElement
A VisualStyleElement whose class and part combination will be verified.
Returns
Boolean Boolean
true if the combination of the ClassName and Part properties of element are defined; otherwise, false .
Exceptions
InvalidOperationException InvalidOperationException
The operating system does not support visual styles.
-or-
Visual styles are disabled by the user in the operating system.
-or-
Visual styles are not applied to the client area of application windows.
Examples
The following code example demonstrates how to use the IsElementDefined method to determine whether to initialize
a VisualStyleRenderer to a given VisualStyleElement. This code example is part of a larger example provided for the
VisualStyleRenderer class overview.
// Set the VisualStyleRenderer to a new element.
private bool SetRenderer(VisualStyleElement element)
{
if ()
{
return false;
}
if (renderer == null)
{
renderer = new VisualStyleRenderer(element);
}
else
{
[Link](element);
}
return true;
}
Remarks
This method checks the value of the IsSupported property internally.
[Link] [Link]
Supported
I n this Article
Gets a value specifying whether the operating system is using visual styles to draw controls.
Returns
Boolean Boolean
true if the operating system supports visual styles, the user has enabled visual styles in the operating system, and
visual styles are applied to the client area of application windows; otherwise, false .
Remarks
The following table describes how to individually check for each of the three conditions that must exist for the
IsSupported property to return true .
The operating system supports visual styles. Verify that the IsSupportedByOS property of the
VisualStyleInformation class is true .
The user has enabled visual styles in the operating system. Verify that the IsEnabledByUser property of the
VisualStyleInformation class is true .
Visual styles are being used to draw the client area of Verify that the VisualStyleState property of the Application
application windows. class has the value [Link] or
[Link].
[Link] [Link]
HResult
I n this Article
Gets the last error code returned by the native visual styles (UxTheme) API methods encapsulated by the
VisualStyleRenderer class.
public int LastHResult { get; }
member [Link] : int
Returns
Int32 Int32
A value specifying the last error code returned by the native visual styles API methods that this class encapsulates.
Remarks
This property gets the HRESULT value that was returned by the last native visual styles API method called by a
member of the VisualStyleRenderer class. For more information about the native visual styles API, see "Using
Windows XP Visual Styles" in the Platform SDK portion of the MSDN Library at [Link]
[Link] [Link]
I n this Article
Gets the part of the current visual style element.
public int Part { get; }
member [Link] : int
Returns
Int32 Int32
A value that specifies the part of the current visual style element.
Remarks
This property identifies a particular specialization of a class. For more information about the class, part, and state of a
visual style element, see the VisualStyleElement class.
[Link] VisualStyleRenderer.
SetParameters
I n this Article
Overloads
SetParameters(String, Int32, Int32) SetParameters(String,
Int32, Int32) Sets this VisualStyleRenderer to the visual style element
represented by the specified class, part, and state values.
SetParameters(VisualStyleElement) SetParameters(VisualStyle
Element) Sets this VisualStyleRenderer to the visual style element
represented by the specified VisualStyleElement.
Parameters
className String String
The new value of the Class property.
part Int32 Int32
The new value of the Part property.
state Int32 Int32
The new value of the State property.
Exceptions
ArgumentException ArgumentException
The combination of className , part , and state is not defined by the current visual style.
InvalidOperationException InvalidOperationException
The operating system does not support visual styles.
-or-
Visual styles are disabled by the user in the operating system.
-or-
Visual styles are not applied to the client area of application windows.
Remarks
This method checks the value of the IsSupported property internally. Before calling this method, you should call the
IsElementDefined method to verify that the current visual style provides a definition for the element specified by the
className , part , and state parameters.
SetParameters(VisualStyleElement)
SetParameters(VisualStyleElement)
Sets this VisualStyleRenderer to the visual style element represented by the specified VisualStyleElement.
public void SetParameters ([Link] element);
member [Link] : [Link] -> unit
Parameters
element VisualStyleElement VisualStyleElement
A VisualStyleElement that specifies the new values of the Class, Part, and State properties.
Exceptions
ArgumentException ArgumentException
element is not defined by the current visual style.
InvalidOperationException InvalidOperationException
The operating system does not support visual styles.
-or-
Visual styles are disabled by the user in the operating system.
-or-
Visual styles are not applied to the client area of application windows.
Examples
The following code example demonstrates how to use the SetParameters(VisualStyleElement) method to set a
VisualStyleRenderer to a new VisualStyleElement. This code example is part of a larger example provided for the
VisualStyleRenderer class overview.
if (renderer == null)
{
renderer = new VisualStyleRenderer(element);
}
else
{
[Link](element);
}
return true;
}
Remarks
This method checks the value of the IsSupported property internally. Before calling this method, you should call the
IsElementDefined method to verify that the current visual style provides a definition for the element specified by the
element parameter.
[Link] [Link]
I n this Article
Gets the state of the current visual style element.
public int State { get; }
member [Link] : int
Returns
Int32 Int32
A value that identifies the state of the current visual style element.
Remarks
This property identifies the current visual state of the element identified by the current Class and Part property values.
For more information about the class, part, and state of a visual style element, see the VisualStyleElement class.
VisualStyleRenderer VisualStyleRenderer
I n this Article
Overloads
VisualStyleRenderer(VisualStyleElement) VisualStyleRenderer(
VisualStyleElement) Initializes a new instance of the VisualStyleRenderer class using
the given VisualStyleElement.
VisualStyleRenderer(VisualStyleElement)
VisualStyleRenderer(VisualStyleElement)
Initializes a new instance of the VisualStyleRenderer class using the given VisualStyleElement.
public VisualStyleRenderer ([Link] element);
new [Link] :
[Link] ->
[Link]
Parameters
element VisualStyleElement VisualStyleElement
A VisualStyleElement that this VisualStyleRenderer will represent.
Exceptions
InvalidOperationException InvalidOperationException
The operating system does not support visual styles.
-or-
Visual styles are disabled by the user in the operating system.
-or-
Visual styles are not applied to the client area of application windows.
ArgumentException ArgumentException
element is not defined by the current visual style.
Examples
The following code example demonstrates how to use the VisualStyleRenderer(VisualStyleElement) constructor to
create a VisualStyleRenderer. This code example is part of a larger code example provided for the VisualStyleRenderer
class overview.
// Set the VisualStyleRenderer to a new element.
private bool SetRenderer(VisualStyleElement element)
{
if ()
{
return false;
}
if (renderer == null)
{
renderer = new VisualStyleRenderer(element);
}
else
{
[Link](element);
}
return true;
}
Remarks
This constructor uses the [Link], [Link], and [Link]
properties of the element parameter to initialize the Class, Part, and State properties.
Before using this constructor, you should call the static IsElementDefined method to verify whether the current visual
style provides a definition for the element specified by the element parameter.
Parameters
className String String
The class name of the element that this VisualStyleRenderer will represent.
part Int32 Int32
The part of the element that this VisualStyleRenderer will represent.
state Int32 Int32
The state of the element that this VisualStyleRenderer will represent.
Exceptions
InvalidOperationException InvalidOperationException
The operating system does not support visual styles.
-or-
Visual styles are disabled by the user in the operating system.
-or-
Visual styles are not applied to the client area of application windows.
ArgumentException ArgumentException
The combination of className , part , and state is not defined by the current visual style.
Remarks
This constructor uses the className , part , and state parameters to initialize the Class, Part, and State properties.
Before using this constructor, you should call the static IsElementDefined method to verify whether the current visual
style provides a definition for the element specified by the className , part , and state parameters.
VisualStyleState VisualStyleState Enum
Specifies how visual styles are applied to the current application.
D eclaration
public enum VisualStyleState
type VisualStyleState =
I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum
Remarks
This enumeration is used by the [Link] property to specify whether visual styles are applied to
client or nonclient areas of application windows.
Fields
ClientAndNonClientAreasEnabled Visual styles are applied to client and nonclient
ClientAndNonClientAreasEnabled areas.
ClientAreaEnabled ClientAreaEnabled Visual styles are applied only to the client area.