GraphicsCaptureItem 類別

定義

使用選擇器控制項選擇的擷取目標。

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

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

備註

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1809 17763 CreateFromVisual

屬性

DisplayName

例如,應用程式標題) 的擷取目標顯示名稱 (。

Size

擷取目標的大小。

方法

CreateFromVisual(Visual)

建構代表指定視覺效果GraphicsCaptureItem

TryCreateFromDisplayId(DisplayId)

嘗試建立 GraphicsCaptureItem ,代表具有指定 DisplayId的顯示。

TryCreateFromWindowId(WindowId)

嘗試建立 GraphicsCaptureItem ,代表具有指定 WindowId的視窗。

事件

Closed

關閉擷取目標時引發的事件。

適用於

另請參閱