Share via


ProjectionManager 類別

定義

定義一組方法,以管理傳送至次要顯示器的 windows (應用程式檢視) ,例如投影機。

public ref class ProjectionManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ProjectionManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class ProjectionManager
Public Class ProjectionManager
繼承
Object Platform::Object IInspectable ProjectionManager
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

屬性

ProjectionDisplayAvailable

取得投影顯示器是否可供使用。

方法

GetDeviceSelector()

傳回用來列舉裝置服務的字串。

RequestStartProjectingAsync(Int32, Int32, Rect)

提出要求,以非同步方式傳送視窗 (應用程式檢視,) 投影機或其他次要顯示器。

RequestStartProjectingAsync(Int32, Int32, Rect, Placement)

提出要求,以非同步方式傳送視窗 (應用程式檢視,) 到投影機或其他具有指定慣用位置的次要顯示器。

StartProjectingAsync(Int32, Int32)

以非同步方式將視窗傳送至投影機或其他次要顯示器 (應用程式檢視) 。

StartProjectingAsync(Int32, Int32, DeviceInformation)

以非同步方式將視窗 (應用程式檢視) 傳送至投影機或其他次要顯示器,並提供顯示器的相關資訊。

StopProjectingAsync(Int32, Int32)

以非同步方式隱藏投影機或其他次要顯示器所顯示的視窗 (應用程式檢視) 。

SwapDisplaysForViewsAsync(Int32, Int32)

以非同步方式交換呼叫視窗 (應用程式檢視) ,以及投影機或其他次要顯示器上顯示的視窗。 結果是呼叫視窗會顯示在投影機上,而先前投影的視窗會顯示在裝置螢幕上。

事件

ProjectionDisplayAvailableChanged

發生于投影機或其他次要顯示器變成可用或無法使用時。

適用於

另請參閱