次の方法で共有


DocumentTreeManager.GetItemContainer メソッド

更新 : 2007 年 11 月

この API は、.NET Framework インフラストラクチャをサポートします。独自に作成したコードから直接使用するためのものではありません。

この項目を参照するプロパティを返します。

名前空間 :  Microsoft.Windows.Design.Documents.Trees
アセンブリ :  Microsoft.Windows.Design.Markup (Microsoft.Windows.Design.Markup.dll 内)

構文

'宣言
Protected Overridable Function GetItemContainer ( _
    item As DocumentItem _
) As DocumentProperty
'使用
Dim item As DocumentItem
Dim returnValue As DocumentProperty

returnValue = Me.GetItemContainer(item)
protected virtual DocumentProperty GetItemContainer(
    DocumentItem item
)
protected:
virtual DocumentProperty^ GetItemContainer(
    DocumentItem^ item
)
protected function GetItemContainer(
    item : DocumentItem
) : DocumentProperty

パラメータ

戻り値

型 : Microsoft.Windows.Design.Documents.Trees.DocumentProperty

この項目を参照するプロパティ。決定できない場合は nullnull 参照 (Visual Basic では Nothing)。

解説

FindNode メソッドをオーバーライドして値を返すドキュメントは、返される項目を含むプロパティを返すことができるようにする必要があります。

アクセス許可

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

DocumentTreeManager クラス

DocumentTreeManager メンバ

Microsoft.Windows.Design.Documents.Trees 名前空間

その他の技術情報

WPF デザイナの機能拡張