會取得指定之裝飾項的檢視。
命名空間: Microsoft.Windows.Design.Interaction
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Public Shared Function GetView ( _
adorner As DependencyObject _
) As ViewItem
public static ViewItem GetView(
DependencyObject adorner
)
public:
static ViewItem^ GetView(
DependencyObject^ adorner
)
static member GetView :
adorner:DependencyObject -> ViewItem
public static function GetView(
adorner : DependencyObject
) : ViewItem
參數
- adorner
型別:System.Windows.DependencyObject
要擷取其工作的裝飾項項目。
傳回值
型別:Microsoft.Windows.Design.Interaction.ViewItem
與 adorner 相關聯的檢視,如果沒有設定檢視則為 nullNull 參照 (即 Visual Basic 中的 Nothing)。
例外狀況
| 例外狀況 | 條件 |
|---|---|
| ArgumentNullException | adorner 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.Interaction 命名空間