语言

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。

注释

使用 GetPageRootAsyncGetPageRoot 避免在加载时 FixedPage 阻止线程。

适用于