DocumentViewerBase.GetIsMasterPage(DependencyObject) 方法

定義

傳回所指定相依性物件的 IsMasterPage 附加屬性值。

public:
 static bool GetIsMasterPage(System::Windows::DependencyObject ^ element);
public static bool GetIsMasterPage (System.Windows.DependencyObject element);
static member GetIsMasterPage : System.Windows.DependencyObject -> bool
Public Shared Function GetIsMasterPage (element As DependencyObject) As Boolean

參數

element
DependencyObject

要從中擷取 IsMasterPage 值的相依性物件。

傳回

Boolean

IsMasterPage 附加屬性的值,讀取自項目指定的相依性物件。

例外狀況

如果 elementnull,就會引發。

備註

主版頁面會對應至 DocumentPageView 集合中的 PageViews 物件 () ,其中包含具有 值 trueIsMasterPage 附加屬性。 如需詳細資訊,請參閱IsMasterPage

適用於

另請參閱