共用方式為


ContentSiteView 類別

定義

提供屬性唯讀檢視的 ContentSite 存取權。

[WebHostHidden]
public ref class ContentSiteView
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[WebHostHidden]
class ContentSiteView
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class ContentSiteView
Public Class ContentSiteView
繼承
Object Platform::Object IInspectable ContentSiteView
屬性

備註

這個物件會公開 來自 ContentSite 的最新值,它不是一段時間的快照集。

屬性

ActualSize

取得相關聯 ContentIsland 之 的邏輯大小。

ClientSize

取得父 Win32 HWND 用戶端大小。

CoordinateConverter

ContentCoordinateConverter取得 物件,這個 物件用來執行這個 ContentSiteView 和螢幕座標的本機座標空間之間的轉換。

DispatcherQueue

取得此 DispatcherQueueContentSiteView

EnvironmentView

取得此 Microsoft.UI.Content.ContentSiteEnvironmentViewContentSiteView

IsConnected

IsConnected取得 所 ContentSite 報告的狀態。

IsSiteEnabled

IsSiteEnabled取得 所 ContentSite 報告的狀態。

IsSiteVisible

IsSiteVisible取得 所 ContentSite 報告的狀態。

LayoutDirection

取得 LayoutDirection (LeftToRight 或 RightToLeft) ,以便讀取 所 ContentSite 報告的順序和文字對齊方式。

OverrideScale

取得單 ContentSite 一 的覆寫縮放比例,忽略父 Win32 HWND 的預設縮放比例。

ParentScale

取得單 ContentSite 一 父 Win32 HWND 的預設縮放比例。

RasterizationScale

取得相關聯 ContentSite 之 的計算本機 DPI,從 和 ParentScale 計算 OverrideScale

如需詳細資訊,請參閱 ContentIsland.RasterizationScale。

RequestedSize

取得邏輯 RequestedSize

ShouldApplyRasterizationScale

取得 是否 ContentSite 套用計算 RasterizationScale 為光學刻度。

適用於