Skip to content

Commit bbb19ed

Browse files
authored
Update BackgroundColor.md
1 parent ef3d0a1 commit bbb19ed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

specs/BackgroundColor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The `BackgroundColor` property enables a seamless UI experience. Developers can
77

88
# Examples
99
## Win32 C++
10-
The fields of COREWEBVIEW2_COLOR can be set with plain old integer values between 0 and 255. In the following example, we see the app reading color values from a COLORREF (which are integers under the covers) into a COREWEBVIEW2_COLOR. It then sets the COREWEBVIEW2_COLOR.A value to 0 or 255. Once the COREWEBVIEW2_COLOR value is filled out, it is passed to the controller's put_BackgroundColor API.
10+
The fields of COREWEBVIEW2_COLOR can be set with integer values between 0 and 255. In the following example, we see the app reading color values from a COLORREF (which are integers under the covers) into a COREWEBVIEW2_COLOR. It then sets the COREWEBVIEW2_COLOR.A value to 0 or 255. Once the COREWEBVIEW2_COLOR value is filled out, it is passed to the controller's put_BackgroundColor API.
1111
```cpp
1212
void ViewComponent::SetBackgroundColor(COLORREF color, bool transparent)
1313
{
@@ -19,7 +19,7 @@ void ViewComponent::SetBackgroundColor(COLORREF color, bool transparent)
1919
m_controller->put_BackgroundColor(wvColor);
2020
}
2121
```
22-
## C#
22+
## WinRT
2323
```c#
2424
private void SetBackgroundColor(Windows.UI.Color color)
2525
{
@@ -101,7 +101,7 @@ typedef struct COREWEBVIEW2_COLOR {
101101
BYTE B;
102102
} COREWEBVIEW2_COLOR;
103103
```
104-
## .NET and WinRT
104+
## WinRT
105105
```c#
106106
unsealed runtimeclass CoreWebView2Controller
107107
{

0 commit comments

Comments
 (0)