AdornerProperties.GetModel メソッド

更新 : 2007 年 11 月

指定した装飾に関連付けられているモデル アイテムを取得します。

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

構文

'宣言
Public Shared Function GetModel ( _
    adorner As DependencyObject _
) As ModelItem
'使用
Dim adorner As DependencyObject
Dim returnValue As ModelItem

returnValue = AdornerProperties.GetModel(adorner)
public static ModelItem GetModel(
    DependencyObject adorner
)
public:
static ModelItem^ GetModel(
    DependencyObject^ adorner
)
public static function GetModel(
    adorner : DependencyObject
) : ModelItem

パラメータ

戻り値

型 : Microsoft.Windows.Design.Model.ModelItem

adorner に関連付けられている ModelItem

例外

例外 条件
ArgumentNullException

adorner が nullnull 参照 (Visual Basic では Nothing) です。

解説

装飾は、モデル アイテムに対応するビューに関連付けられます。

アクセス許可

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

参照

参照

AdornerProperties クラス

AdornerProperties メンバ

Microsoft.Windows.Design.Interaction 名前空間

ModelItem

AdornerPanel

その他の技術情報

チュートリアル : デザイン時装飾の作成

装飾アーキテクチャ