Export (0) Print
Expand All

scrollbarArrowColor property

Specifies the color of the arrow elements of a scroll arrow.

Internet Explorer 9

 

Syntax

HRESULT value = object.put_scrollbarArrowColor( v);HRESULT value = object.get_scrollbarArrowColor(* p);

Property values

Type: VARIANT

Any color name or RGB values in the Color Table.

String format

variant

CSS information

Applies ToAll elements
Mediavisual
Inherited1
Initial ValueDefault color

Standards information

There are no standards that apply here.

Remarks

Windows Internet Explorer 8. The -ms-scrollbar-arrow-color attribute is an extension to CSS, and can be used as a synonym for IHTMLStyle3::scrollbarArrowColor in IE8 Standards mode.

The scroll arrows, located at each end of a scroll bar, are the square buttons containing the arrows that move the content on the screen in small increments, either up and down or left and right.

This property applies to elements that display a scroll bar. Cascading Style Sheets (CSS) enable scrolling on all objects through the IHTMLRuleStyle::overflow property. These objects are not listed in the Applies To list for this property.

Examples

The following example shows how to use IHTMLStyle3::scrollbarArrowColor and IHTMLStyle3::scrollbarFaceColor to display a scroll bar with a blue scroll box and arrows, and a scroll bar with a green scroll box and arrows.


div {
  width: 150px;
  height: 150px;
  overflow-y: scroll;
  border-style: solid;
  border-width: thin;
  font-family: sans-serif;
  float: left;
  margin-right: 10px;
}
.blueScrollBox {
  scrollbar-face-color: blue;
  scrollbar-arrow-color: blue;
}
.greenScrollBox {
  scrollbar-face-color: green;
  scrollbar-arrow-color: green;
}


<body>
  <div class="blueScrollBox">
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
  </div>
  <div class="greenScrollBox">
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
  </div>
</body>

The following image shows the result:

An image showing a scroll bar with a blue scroll box and arrows, and a scroll bar with a green scroll box and arrows.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

Reference
IHTMLStyle3::scrollbar3dLightColor
IHTMLStyle3::scrollbarBaseColor
IHTMLStyle3::scrollbarDarkShadowColor
IHTMLStyle3::scrollbarFaceColor
IHTMLStyle3::scrollbarHighlightColor
IHTMLStyle3::scrollbarShadowColor
IHTMLStyle3::scrollbarTrackColor

 

 

Community Additions

ADD
Show:
© 2014 Microsoft