interface ICoreWebView2EnvironmentOptions8

interface ICoreWebView2EnvironmentOptions8
  : public IUnknown

Additional options used to create WebView2 Environment.

Summary

Members Descriptions
get_ScrollBarStyle Gets the ScrollBarStyle property.
put_ScrollBarStyle The ScrollBar style being set on the WebView2 Environment.

Applies to

Product Introduced
WebView2 Win32 N/A
WebView2 Win32 Prerelease 1.0.2526

Members

get_ScrollBarStyle

Gets the ScrollBarStyle property.

public HRESULT get_ScrollBarStyle(COREWEBVIEW2_SCROLLBAR_STYLE * value)

put_ScrollBarStyle

The ScrollBar style being set on the WebView2 Environment.

public HRESULT put_ScrollBarStyle(COREWEBVIEW2_SCROLLBAR_STYLE value)

The default value is COREWEBVIEW2_SCROLLBAR_STYLE_DEFAULT which specifies the default browser ScrollBar style. The color-scheme CSS property needs to be set on the corresponding page to allow ScrollBar to follow light or dark theme. Please see color-scheme for how color-scheme can be set. CSS styles that modify the ScrollBar applied on top of native ScrollBar styling that is selected with ScrollBarStyle.