Skip to content

Commit fd11ac1

Browse files
Merge pull request #6269 from MicrosoftDocs/standardize-winui-terminology
Standardize WinUI terminology
2 parents 979906b + 60853cd commit fd11ac1

246 files changed

Lines changed: 11810 additions & 11814 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openpublishing.publish.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
{
8989
"path_to_root": "snippets-windows",
9090
"url": "https://github.com/MicrosoftDocs/windows-code-snippets-pr",
91-
"branch": "master",
91+
"branch": "main",
9292
"branch_mapping": {}
9393
},
9494
{
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
---
2-
title: Win32Interop.GetDisplayIdFromMonitor(IntPtr) method
3-
description: Gets the `DisplayId` that corresponds to the specified *hmonitor*, if the provided `hmonitor` is valid.
4-
ms.topic: article
5-
ms.date: 02/08/2022
6-
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7-
ms.localizationpriority: low
8-
---
9-
10-
# Win32Interop.GetDisplayIdFromMonitor(IntPtr) method
11-
12-
Reference
13-
14-
## Definition
15-
16-
Namespace: [Microsoft.UI](microsoft.ui.md)
17-
18-
Gets the `DisplayId` that corresponds to the specified *hmonitor*, if the provided `hmonitor` is valid.
19-
20-
```csharp
21-
public static DisplayId GetDisplayIdFromMonitor(IntPtr hmonitor);
22-
```
23-
24-
### Parameters
25-
26-
`hmonitor` [IntPtr](/dotnet/api/system.intptr)
27-
28-
The handle of the display monitor for which to get the `DisplayId`.
29-
30-
### Returns
31-
32-
[DisplayId](/windows/windows-app-sdk/api/winrt/microsoft.ui.displayid)
33-
34-
The display monitor identifier that corresponds to the specified *hmonitor*, if the provided *hmonitor* is valid. Otherwise, `null`.
35-
36-
## Applies to
37-
38-
| Product | Introduced in |
39-
|-|-|
40-
|**WinUI 3**|Windows App SDK 1.0|
41-
42-
## See also
43-
44-
* [Win32Interop class](microsoft.ui.win32interop.md)
45-
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
1+
---
2+
title: Win32Interop.GetDisplayIdFromMonitor(IntPtr) method
3+
description: Gets the `DisplayId` that corresponds to the specified *hmonitor*, if the provided `hmonitor` is valid.
4+
ms.topic: article
5+
ms.date: 02/08/2022
6+
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7+
ms.localizationpriority: low
8+
---
9+
10+
# Win32Interop.GetDisplayIdFromMonitor(IntPtr) method
11+
12+
Reference
13+
14+
## Definition
15+
16+
Namespace: [Microsoft.UI](microsoft.ui.md)
17+
18+
Gets the `DisplayId` that corresponds to the specified *hmonitor*, if the provided `hmonitor` is valid.
19+
20+
```csharp
21+
public static DisplayId GetDisplayIdFromMonitor(IntPtr hmonitor);
22+
```
23+
24+
### Parameters
25+
26+
`hmonitor` [IntPtr](/dotnet/api/system.intptr)
27+
28+
The handle of the display monitor for which to get the `DisplayId`.
29+
30+
### Returns
31+
32+
[DisplayId](/windows/windows-app-sdk/api/winrt/microsoft.ui.displayid)
33+
34+
The display monitor identifier that corresponds to the specified *hmonitor*, if the provided *hmonitor* is valid. Otherwise, `null`.
35+
36+
## Applies to
37+
38+
| Product | Introduced in |
39+
|-|-|
40+
|**WinUI**|Windows App SDK 1.0|
41+
42+
## See also
43+
44+
* [Win32Interop class](microsoft.ui.win32interop.md)
45+
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
4646
* [Call interop APIs from a .NET app](../../../desktop/modernize/winrt-com-interop-csharp.md)
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
---
2-
title: Win32Interop.GetIconFromIconId(IconId) method
3-
description: Gets the icon handle that corresponds to the specified *iconId*, if the provided *iconId* is valid and the system has an `HICON` that represents the icon.
4-
ms.topic: article
5-
ms.date: 02/08/2022
6-
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7-
ms.localizationpriority: low
8-
---
9-
10-
# Win32Interop.GetIconFromIconId(IconId) method
11-
12-
Reference
13-
14-
## Definition
15-
16-
Namespace: [Microsoft.UI](microsoft.ui.md)
17-
18-
Gets the icon handle that corresponds to the specified *iconId*, if the provided *iconId* is valid and the system has an `HICON` that represents the icon.
19-
20-
```csharp
21-
public static IntPtr GetIconFromIconId(IconId iconId);
22-
```
23-
24-
### Parameters
25-
26-
`iconId` [IconId](/windows/windows-app-sdk/api/winrt/microsoft.ui.iconid)
27-
28-
The identifier for the icon.
29-
30-
### Returns
31-
32-
[IntPtr](/dotnet/api/system.intptr)
33-
34-
The icon handle that corresponds to the specified *iconId*, if the provided *iconId* is valid and the system has an `HICON` that represents the icon. Otherwise, `null`.
35-
36-
## Applies to
37-
38-
| Product | Introduced in |
39-
|-|-|
40-
|**WinUI 3**|Windows App SDK 1.0|
41-
42-
## See also
43-
44-
* [Win32Interop class](microsoft.ui.win32interop.md)
45-
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
1+
---
2+
title: Win32Interop.GetIconFromIconId(IconId) method
3+
description: Gets the icon handle that corresponds to the specified *iconId*, if the provided *iconId* is valid and the system has an `HICON` that represents the icon.
4+
ms.topic: article
5+
ms.date: 02/08/2022
6+
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7+
ms.localizationpriority: low
8+
---
9+
10+
# Win32Interop.GetIconFromIconId(IconId) method
11+
12+
Reference
13+
14+
## Definition
15+
16+
Namespace: [Microsoft.UI](microsoft.ui.md)
17+
18+
Gets the icon handle that corresponds to the specified *iconId*, if the provided *iconId* is valid and the system has an `HICON` that represents the icon.
19+
20+
```csharp
21+
public static IntPtr GetIconFromIconId(IconId iconId);
22+
```
23+
24+
### Parameters
25+
26+
`iconId` [IconId](/windows/windows-app-sdk/api/winrt/microsoft.ui.iconid)
27+
28+
The identifier for the icon.
29+
30+
### Returns
31+
32+
[IntPtr](/dotnet/api/system.intptr)
33+
34+
The icon handle that corresponds to the specified *iconId*, if the provided *iconId* is valid and the system has an `HICON` that represents the icon. Otherwise, `null`.
35+
36+
## Applies to
37+
38+
| Product | Introduced in |
39+
|-|-|
40+
|**WinUI**|Windows App SDK 1.0|
41+
42+
## See also
43+
44+
* [Win32Interop class](microsoft.ui.win32interop.md)
45+
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
4646
* [Call interop APIs from a .NET app](../../../desktop/modernize/winrt-com-interop-csharp.md)
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
---
2-
title: Win32Interop.GetIconIdFromIcon(IntPtr) method
3-
description: Gets the `IconId` that corresponds to the specified *hicon*, if the provided `hicon` is valid.
4-
ms.topic: article
5-
ms.date: 02/08/2022
6-
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7-
ms.localizationpriority: low
8-
---
9-
10-
# Win32Interop.GetIconIdFromIcon(IntPtr) method
11-
12-
Reference
13-
14-
## Definition
15-
16-
Namespace: [Microsoft.UI](microsoft.ui.md)
17-
18-
Gets the `IconId` that corresponds to the specified *hicon*, if the provided `hicon` is valid.
19-
20-
```csharp
21-
public static IconId GetIconIdFromIcon(IntPtr hicon);
22-
```
23-
24-
### Parameters
25-
26-
`hicon` [IntPtr](/dotnet/api/system.intptr)
27-
28-
The handle of the icon for which to get the `IconId`.
29-
30-
### Returns
31-
32-
[IconId](/windows/windows-app-sdk/api/winrt/microsoft.ui.iconid)
33-
34-
The icon identifier that corresponds to the specified *hicon*, if the provided *hicon* is valid. Otherwise, `null`.
35-
36-
## Applies to
37-
38-
| Product | Introduced in |
39-
|-|-|
40-
|**WinUI 3**|Windows App SDK 1.0|
41-
42-
## See also
43-
44-
* [Win32Interop class](microsoft.ui.win32interop.md)
45-
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
1+
---
2+
title: Win32Interop.GetIconIdFromIcon(IntPtr) method
3+
description: Gets the `IconId` that corresponds to the specified *hicon*, if the provided `hicon` is valid.
4+
ms.topic: article
5+
ms.date: 02/08/2022
6+
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7+
ms.localizationpriority: low
8+
---
9+
10+
# Win32Interop.GetIconIdFromIcon(IntPtr) method
11+
12+
Reference
13+
14+
## Definition
15+
16+
Namespace: [Microsoft.UI](microsoft.ui.md)
17+
18+
Gets the `IconId` that corresponds to the specified *hicon*, if the provided `hicon` is valid.
19+
20+
```csharp
21+
public static IconId GetIconIdFromIcon(IntPtr hicon);
22+
```
23+
24+
### Parameters
25+
26+
`hicon` [IntPtr](/dotnet/api/system.intptr)
27+
28+
The handle of the icon for which to get the `IconId`.
29+
30+
### Returns
31+
32+
[IconId](/windows/windows-app-sdk/api/winrt/microsoft.ui.iconid)
33+
34+
The icon identifier that corresponds to the specified *hicon*, if the provided *hicon* is valid. Otherwise, `null`.
35+
36+
## Applies to
37+
38+
| Product | Introduced in |
39+
|-|-|
40+
|**WinUI**|Windows App SDK 1.0|
41+
42+
## See also
43+
44+
* [Win32Interop class](microsoft.ui.win32interop.md)
45+
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
4646
* [Call interop APIs from a .NET app](../../../desktop/modernize/winrt-com-interop-csharp.md)
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
---
2-
title: Win32Interop.GetMonitorFromDisplayId(DisplayId) method
3-
description: Gets the display monitor handle that corresponds to the specified *displayId*, if the provided *displayId* is valid and the system has an `HMONITOR` that represents the display monitor.
4-
ms.topic: article
5-
ms.date: 02/08/2022
6-
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7-
ms.localizationpriority: low
8-
---
9-
10-
# Win32Interop.GetMonitorFromDisplayId(DisplayId) method
11-
12-
Reference
13-
14-
## Definition
15-
16-
Namespace: [Microsoft.UI](microsoft.ui.md)
17-
18-
Gets the display monitor handle that corresponds to the specified *displayId*, if the provided *displayId* is valid and the system has an `HMONITOR` that represents the display monitor.
19-
20-
```csharp
21-
public static IntPtr GetMonitorFromDisplayId(DisplayId displayId);
22-
```
23-
24-
### Parameters
25-
26-
`displayId` [DisplayId](/windows/windows-app-sdk/api/winrt/microsoft.ui.displayid)
27-
28-
The identifier for the display.
29-
30-
### Returns
31-
32-
[IntPtr](/dotnet/api/system.intptr)
33-
34-
The display monitor handle that corresponds to the specified *displayId*, if the provided *displayId* is valid and the system has an `HMONITOR` that represents the display monitor. Otherwise, `null`.
35-
36-
## Applies to
37-
38-
| Product | Introduced in |
39-
|-|-|
40-
|**WinUI 3**|Windows App SDK 1.0|
41-
42-
## See also
43-
44-
* [Win32Interop class](microsoft.ui.win32interop.md)
45-
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
1+
---
2+
title: Win32Interop.GetMonitorFromDisplayId(DisplayId) method
3+
description: Gets the display monitor handle that corresponds to the specified *displayId*, if the provided *displayId* is valid and the system has an `HMONITOR` that represents the display monitor.
4+
ms.topic: article
5+
ms.date: 02/08/2022
6+
keywords: windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
7+
ms.localizationpriority: low
8+
---
9+
10+
# Win32Interop.GetMonitorFromDisplayId(DisplayId) method
11+
12+
Reference
13+
14+
## Definition
15+
16+
Namespace: [Microsoft.UI](microsoft.ui.md)
17+
18+
Gets the display monitor handle that corresponds to the specified *displayId*, if the provided *displayId* is valid and the system has an `HMONITOR` that represents the display monitor.
19+
20+
```csharp
21+
public static IntPtr GetMonitorFromDisplayId(DisplayId displayId);
22+
```
23+
24+
### Parameters
25+
26+
`displayId` [DisplayId](/windows/windows-app-sdk/api/winrt/microsoft.ui.displayid)
27+
28+
The identifier for the display.
29+
30+
### Returns
31+
32+
[IntPtr](/dotnet/api/system.intptr)
33+
34+
The display monitor handle that corresponds to the specified *displayId*, if the provided *displayId* is valid and the system has an `HMONITOR` that represents the display monitor. Otherwise, `null`.
35+
36+
## Applies to
37+
38+
| Product | Introduced in |
39+
|-|-|
40+
|**WinUI**|Windows App SDK 1.0|
41+
42+
## See also
43+
44+
* [Win32Interop class](microsoft.ui.win32interop.md)
45+
* [Manage app windows](../../../develop/ui-input/manage-app-windows.md)
4646
* [Call interop APIs from a .NET app](../../../desktop/modernize/winrt-com-interop-csharp.md)

0 commit comments

Comments
 (0)