interface ICoreWebView2ExperimentalEnvironmentOptions2
Note
This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.
Note
This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.
interface ICoreWebView2ExperimentalEnvironmentOptions2
: 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.1414 |
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
.
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈