語言

PageContent.GetPageRoot(Boolean) 方法

定義

載入並回傳 FixedPage 內容元素。

public:
 System::Windows::Documents::FixedPage ^ GetPageRoot(bool forceReload);
public System.Windows.Documents.FixedPage GetPageRoot(bool forceReload);
member this.GetPageRoot : bool -> System.Windows.Documents.FixedPage
Public Function GetPageRoot (forceReload As Boolean) As FixedPage

參數

forceReload
Boolean

true即使 已載入並快FixedPage取,仍必須重新載入false;只有在沒有快取版本時才載入 。FixedPage

傳回

本頁視覺樹的根元素。

備註

GetPageRoot執行同步載入與解析。FixedPage

Note

用 代替GetPageRootAsyncGetPageRoot代替,避免裝載時FixedPage線頭阻塞。

適用於